IDEA-57487 Smart completion in cast operator inserts ill-formed type

This commit is contained in:
peter
2011-02-23 11:33:14 +01:00
parent c13f0636c2
commit d07de05c10
4 changed files with 28 additions and 11 deletions
@@ -0,0 +1,6 @@
abstract class A<T> {
void foo(T x){}
void bar(A<? super Throwable> a, Object b){
a.foo((Throwable) <caret>b);
}
}
@@ -0,0 +1,6 @@
abstract class A<T> {
void foo(T x){}
void bar(A<? super Throwable> a, Object b){
a.foo((<caret>) b);
}
}
@@ -434,6 +434,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
public void testCastAutoboxing() throws Throwable { doActionItemTest(); }
public void testCastAutoboxing2() throws Throwable { doActionItemTest(); }
public void testCastAutoboxing3() throws Throwable { doActionItemTest(); }
public void testCastWildcards() throws Throwable { doTest(); }
public void testNoFieldsInSuperConstructorCall() throws Throwable { doTest(); }
public void testNoUninitializedFieldsInConstructor() throws Throwable { doTest(); }