kt-1760 delegation to java iface:
- removed codegen's unnecessary lookup for a declaration - skipped class' only supertype (if any) methods when delegating
This commit is contained in:
committed by
Andrey Breslav
parent
78cb5381f7
commit
b84f068c33
@@ -53,6 +53,11 @@ public class ClassGenTest extends CodegenTestCase {
|
||||
assertInstanceOf(aClass.newInstance(), List.class);
|
||||
}
|
||||
|
||||
public void testDelegationJavaIface() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
blackBoxFile("classes/delegationJava.kt");
|
||||
}
|
||||
|
||||
public void testInheritanceAndDelegation_DelegatingDefaultConstructorProperties() throws Exception {
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
blackBoxFile("classes/inheritance.jet");
|
||||
|
||||
Reference in New Issue
Block a user