fork download
  1.  
  2. import java.util.stream.*;
  3.  
  4. class Ideone {
  5. public static void main (String[] args) {
  6.  
  7. IntStream.empty().flatMap(x -> Stream.of(LongStream.empty()));
  8.  
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:7: error: incompatible types: bad return type in lambda expression
		IntStream.empty().flatMap(x -> Stream.of(LongStream.empty()));
		                                        ^
    no instance(s) of type variable(s) T exist so that Stream<T> conforms to IntStream
  where T is a type-variable:
    T extends Object declared in method <T>of(T)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
stdout
Standard output is empty