added one more test to check if overrides are resolved correctly

This commit is contained in:
Kirill Berezin
2012-08-30 21:59:35 +04:00
committed by Andrey Breslav
parent 82a5beddea
commit 454ad48d5b
2 changed files with 23 additions and 1 deletions
@@ -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 {
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")
public void testDelegationToJavaIface() throws Exception {
doTest("compiler/testData/diagnostics/tests/DelegationToJavaIface.kt");