replace with diamonds should always check if inferred type agrees with expected type (IDEA-73944)

This commit is contained in:
anna
2011-09-07 12:18:58 +02:00
parent e24044f3aa
commit 8fef5fc92d
12 changed files with 97 additions and 18 deletions
@@ -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) {
}
}