mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-26 00:11:33 +07:00
method references: remove code duplication in return type checks
This commit is contained in:
@@ -26,7 +26,7 @@ class AlienTest {
|
||||
|
||||
static {
|
||||
IInt i1 = MyTest::<error descr="Cannot resolve method 'abracadabra'">abracadabra</error>;
|
||||
IInt i2 = <error descr="Bad return type in method reference: cannot convert void to int">MyTest::foo</error>;
|
||||
IInt i2 = MyTest::<error descr="Invalid method reference: int cannot be converted to String">foo</error>;
|
||||
IInt i3 = MyTest::<error descr="Cannot resolve method 'bar'">bar</error>;
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'AlienTest.IIntInt'">IIntInt i4 = MyTest::bar;</error>
|
||||
IInt i5 = <error descr="Non-static method cannot be referenced from a static context">MyTest::baz</error>;
|
||||
|
||||
Reference in New Issue
Block a user