mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
replace with diamonds should always check if inferred type agrees with expected type (IDEA-73944)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo() {
|
||||
final Foo<Number> a = new Foo<Number>(1);
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<T> {
|
||||
Foo(T t) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo() {
|
||||
new Foo<Num<caret>ber>(1);
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<T> {
|
||||
Foo(T t) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user