< prev index next >

langtools/test/tools/javac/lambda/8074381/T8074381a.java

Print this page

        

*** 11,29 **** --- 11,31 ---- interface Sub<X> extends Sup<String> { boolean m(String s); } + @SuppressWarnings("deprecation") void testRaw() { Sub s1 = c -> true; Sub s2 = Boolean::new; Sub s3 = new Sub() { @Override public boolean m(String o) { return true; } }; } + @SuppressWarnings("deprecation") void testNonRaw() { Sub<Integer> s1 = c -> true; Sub<Integer> s2 = Boolean::new; Sub<Integer> s3 = new Sub<Integer>() { @Override
< prev index next >