mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
erasure wildcards when generate overriding
(cherry picked from commit 58ced7b4e6be23577a1427c93a7b9c58a4edb5f3)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
interface Generic<T> {
|
||||
T foo();
|
||||
}
|
||||
|
||||
class II implements Generic<?> {
|
||||
public Object foo() {
|
||||
<selection>return null; //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
interface Generic<T> {
|
||||
T foo();
|
||||
}
|
||||
|
||||
class II implements Generic<?> {
|
||||
<caret>
|
||||
}
|
||||
@@ -61,6 +61,7 @@ public class OverrideImplementTest extends LightCodeInsightTestCase {
|
||||
public void testClone() { doTest(false); }
|
||||
public void testOnTheLineWithExistingExpression() { doTest(false); }
|
||||
public void testSimplifyObjectWildcard() { doTest(false); }
|
||||
public void testErasureWildcard() { doTest(false); }
|
||||
|
||||
public void testImplementExtensionMethods() { doTest8(false, true); }
|
||||
public void testDoNotImplementExtensionMethods() { doTest8(false, true); }
|
||||
|
||||
Reference in New Issue
Block a user