mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
testdata for ClassType::<TypeArguments>new method references: ensure compilation error if ClassType is raw but type arguments are given
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.concurrent.Callable;
|
||||
class Test<T> {
|
||||
|
||||
public <P> Test() {
|
||||
}
|
||||
|
||||
{
|
||||
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>> c1 = Test<String>::<String>new;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user