mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
method refs: return type check fix for raw constructor (IDEA-142302)
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ class Test<T> {
|
||||
}
|
||||
|
||||
{
|
||||
Callable<Test<String>> c = <error descr="Bad return type in method reference: cannot convert Test to Test<java.lang.String>">Test::<String>new</error>;
|
||||
Callable<Test<String>> c = <error descr="Raw constructor reference with explicit type parameters for constructor">Test::<String>new</error>;
|
||||
Callable<Test<String>> c1 = Test<String>::<String>new;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user