mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
check reference type as type argument for constructor params (IDEA-57668)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class A {
|
||||
<T> A() {}
|
||||
|
||||
{
|
||||
new <<error descr="Type argument cannot be of primitive type">int</error>>A();
|
||||
}
|
||||
}
|
||||
|
||||
class B<T> {
|
||||
{
|
||||
new B<<error descr="Type argument cannot be of primitive type">int</error>>();
|
||||
B.<<error descr="Type argument cannot be of primitive type">int</error>>m();
|
||||
}
|
||||
|
||||
<S> void m(){}
|
||||
|
||||
}
|
||||
@@ -151,6 +151,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testIDEA89801() throws Exception { doTest(false); }
|
||||
public void testIDEA67681() throws Exception { doTest(false); }
|
||||
public void testIDEA67599() throws Exception { doTest(false); }
|
||||
public void testIDEA57668() throws Exception { doTest(false); }
|
||||
public void testInconvertibleTypes() throws Exception { doTest(false); }
|
||||
public void testIncompatibleReturnType() throws Exception { doTest(false); }
|
||||
public void testContinueInferenceAfterFirstRawResult() throws Exception { doTest(false); }
|
||||
|
||||
Reference in New Issue
Block a user