import java.util.List; import java.util.ArrayList; import java.lang.Integer; import java.lang.System; import java.io.PrintStream; import java.util.stream.Stream; import java.util.function.Function; public class Bug298 { public Stream takes(Stream s, Function fun) { return null; } public void m() { List list = new ArrayList<>(); Stream a = list.stream(); takes(a, x -> 2 * x); } }