added one more test to check if overrides are resolved correctly
This commit is contained in:
committed by
Andrey Breslav
parent
82a5beddea
commit
454ad48d5b
@@ -0,0 +1,12 @@
|
|||||||
|
trait A {
|
||||||
|
fun foo() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
open class B(a: A) : A by a
|
||||||
|
|
||||||
|
class C(a: A): B(a), A {
|
||||||
|
}
|
||||||
|
|
||||||
|
fun b(c: C) {
|
||||||
|
c.foo();
|
||||||
|
}
|
||||||
@@ -185,7 +185,17 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
|||||||
public void testDelegationNotTotrait() throws Exception {
|
public void testDelegationNotTotrait() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/DelegationNotTotrait.kt");
|
doTest("compiler/testData/diagnostics/tests/DelegationNotTotrait.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("Delegation_MultipleDelegates.kt")
|
||||||
|
public void testMultipleDelegation() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/Delegation_MultipleDelegates.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("Delegation_Hierarchy.kt")
|
||||||
|
public void testHierarchyDelegation() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/Delegation_Hierarchy.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("DelegationToJavaIface.kt")
|
@TestMetadata("DelegationToJavaIface.kt")
|
||||||
public void testDelegationToJavaIface() throws Exception {
|
public void testDelegationToJavaIface() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/DelegationToJavaIface.kt");
|
doTest("compiler/testData/diagnostics/tests/DelegationToJavaIface.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user