mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
IDEA-57487 Smart completion in cast operator inserts ill-formed type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
+1
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user