diff options
Diffstat (limited to 'java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/MethodRefAcceptance.java')
-rw-r--r-- | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/MethodRefAcceptance.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/MethodRefAcceptance.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/MethodRefAcceptance.java index 315a8e0c8dff..75f049fefef7 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/MethodRefAcceptance.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/methodRef/MethodRefAcceptance.java @@ -22,20 +22,20 @@ class Test { void foo(IFactory cf) { } void testAssign() { - <error descr="Incompatible types. Found: '<method reference>', required: 'Test.IFactory'">IFactory c1 = Anno::new;</error> - <error descr="Incompatible types. Found: '<method reference>', required: 'Test.IFactory'">IFactory c2 = E::new;</error> - <error descr="Incompatible types. Found: '<method reference>', required: 'Test.IFactory'">IFactory c3 = I::new;</error> + IFactory c1 = <error descr="'Anno' is abstract; cannot be instantiated">Anno::new</error>; + IFactory c2 = <error descr="Enum types cannot be instantiated">E::new</error>; + IFactory c3 = <error descr="'I' is abstract; cannot be instantiated">I::new</error>; IFactory c4 = <error descr="Unexpected wildcard">Foo<?></error>::new; IFactory c5 = <error descr="Cannot find class 1">1</error>::new; - <error descr="Incompatible types. Found: '<method reference>', required: 'Test.IFactory'">IFactory c6 = ABar::new;</error> - <error descr="Incompatible types. Found: '<method reference>', required: 'Test.IFactory'">IFactory c7 = ABaz::new;</error> + IFactory c6 = <error descr="'ABar' is abstract; cannot be instantiated">ABar::new</error>; + IFactory c7 = <error descr="'ABaz' is abstract; cannot be instantiated">ABaz::new</error>; - foo<error descr="'foo(Test.IFactory)' in 'Test' cannot be applied to '(<method reference>)'">(Anno::new)</error>; - foo<error descr="'foo(Test.IFactory)' in 'Test' cannot be applied to '(<method reference>)'">(E::new)</error>; - foo<error descr="'foo(Test.IFactory)' in 'Test' cannot be applied to '(<method reference>)'">(I::new)</error>; + foo(<error descr="'Anno' is abstract; cannot be instantiated">Anno::new</error>); + foo(<error descr="Enum types cannot be instantiated">E::new</error>); + foo(<error descr="'I' is abstract; cannot be instantiated">I::new</error>); foo(<error descr="Unexpected wildcard">Foo<?></error>::new); foo(<error descr="Cannot find class 1">1</error>::new); - foo<error descr="'foo(Test.IFactory)' in 'Test' cannot be applied to '(<method reference>)'">(ABar::new)</error>; - foo<error descr="'foo(Test.IFactory)' in 'Test' cannot be applied to '(<method reference>)'">(ABaz::new)</error>; + foo(<error descr="'ABar' is abstract; cannot be instantiated">ABar::new</error>); + foo(<error descr="'ABaz' is abstract; cannot be instantiated">ABaz::new</error>); } }
\ No newline at end of file |