Added test for nested class

This commit is contained in:
Valentin Kipyatkov
2016-01-19 16:05:34 +03:00
parent 2791d99f9d
commit 38d374d4b9
3 changed files with 35 additions and 0 deletions
@@ -0,0 +1,10 @@
package a
import a.A.Nested as X
interface A {
class Nested
val a: Nested
val b: X
}
@@ -0,0 +1,19 @@
package
package a {
public interface A {
public abstract val a: a.A.Nested
public abstract val b: a.A.Nested
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public final class Nested {
public constructor Nested()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
}
@@ -7599,6 +7599,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("ImportNestedWithDifferentName.kt")
public void testImportNestedWithDifferentName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/imports/ImportNestedWithDifferentName.kt");
doTest(fileName);
}
@TestMetadata("ImportObjectAndUseAsSupertype.kt")
public void testImportObjectAndUseAsSupertype() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/imports/ImportObjectAndUseAsSupertype.kt");