mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
reject type args for constructor of a class without type params (IDEA-102239)
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
class Foo {
|
||||
{
|
||||
Foo f = new Foo<error descr="Type 'Foo' does not have type parameters"><String></error>();
|
||||
Foo.<String>foo();
|
||||
}
|
||||
|
||||
static void foo() {}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
<T> Bar() {}
|
||||
{
|
||||
Bar b = new <String>Bar();
|
||||
}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
Baz() {}
|
||||
{
|
||||
Baz b = new <String>Baz();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user