mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
testdata for IDEA-156256
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Base {
|
||||
private void f() {}
|
||||
|
||||
static void g() {
|
||||
Base b = new Derived();
|
||||
<caret>b.f();
|
||||
}
|
||||
}
|
||||
|
||||
class Derived extends Base {
|
||||
void f() {}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Base {
|
||||
private void f() {}
|
||||
|
||||
static void g() {
|
||||
((Base) new Derived()).f();
|
||||
}
|
||||
}
|
||||
|
||||
class Derived extends Base {
|
||||
void f() {}
|
||||
}
|
||||
@@ -297,6 +297,7 @@ public class InlineLocalTest extends LightCodeInsightTestCase {
|
||||
|
||||
public void testLocalInsideLambdaWithNestedLambda() { doTest(true); }
|
||||
public void testDefInMultiAssignmentStatement() { doTest(true); }
|
||||
public void testPrivateOverload() { doTest(true); }
|
||||
|
||||
private void doTest(final boolean inlineDef, String conflictMessage) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user