mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
functional expressions: push down conflicts
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
interface Base {
|
||||
default void foo() {
|
||||
System.out.println("Hi there.");
|
||||
}
|
||||
void ba<caret>r();
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
Base base = () -> {};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
interface Base {
|
||||
default void foo<caret>() {
|
||||
System.out.println("Hi there.");
|
||||
}
|
||||
void bar();
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
Base base = () -> {};
|
||||
}
|
||||
}
|
||||
|
||||
class Child implements Base {}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
interface Base {
|
||||
void bar();
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
Base base = () -> {};
|
||||
}
|
||||
}
|
||||
|
||||
class Child implements Base {
|
||||
public void foo() {
|
||||
System.out.println("Hi there.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
interface Base {
|
||||
default void foo() {
|
||||
System.out.println("Hi there.");
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
Base base = () -> {};
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,9 @@ public class PushDownTest extends LightRefactoringTestCase {
|
||||
public void testExtensionMethodToInterface() { doTest(); }
|
||||
public void testExtensionMethodToClass() { doTest(); }
|
||||
|
||||
public void testFunctionalExpression() { doTest(true);}
|
||||
public void testFunctionalExpressionDefaultMethod() { doTest();}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user