Use descriptors for building SAM constructors
It helps to get rid of semantics duplicating and fixes known bugs - SOE in OnlyAbstractMethodFinder.find - type enhancement for SAM constructors #KT-11287 Fixed #KT-11322 Fixed EA-77989 Fixed
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// FILE: A.java
|
||||
|
||||
public interface A extends A.B {
|
||||
interface B extends A { public int getFoo() { return 1; } }
|
||||
}
|
||||
|
||||
// FILE: A0.java
|
||||
public interface A0 extends A0.B {
|
||||
interface B { public int getFoo() { return 1; } }
|
||||
}
|
||||
|
||||
// FILE: B.java
|
||||
|
||||
public class B extends D {
|
||||
public int getFoo() { return 1; }
|
||||
public static class C {
|
||||
public int getFoo() { return 1; }
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: D.java
|
||||
public class D extends B.C {
|
||||
public int getFoo() { return 1; }
|
||||
}
|
||||
Reference in New Issue
Block a user