mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
diamonds: no diamonds with anonymous classes (IDEA-72391)
This commit is contained in:
+2
-2
@@ -95,14 +95,14 @@ interface I<T> {
|
||||
}
|
||||
|
||||
class FI1 {
|
||||
I<? extends String> i1 = new I<>() {
|
||||
I<? extends String> i1 = new I<<error descr="Cannot use ''<>'' with anonymous inner classes"></error>>() {
|
||||
@Override
|
||||
public String m() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
I<?> i2 = new I<>() {
|
||||
I<?> i2 = new I<<error descr="Cannot use ''<>'' with anonymous inner classes"></error>>() {
|
||||
@Override
|
||||
public Object m() {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user