DM 19.09.2016: typealiases private in file are resolved as classes.

Add test for typealias private in file.
This commit is contained in:
Dmitry Petrov
2016-09-20 12:06:46 +03:00
parent 42e85b07c9
commit bfcf7d9890
4 changed files with 73 additions and 13 deletions
@@ -0,0 +1,22 @@
// FILE: file1.kt
private class <!REDECLARATION!>C<!> {
companion object
}
private typealias <!REDECLARATION!>TA<!> = C
private val test1: C = C()
private val test1co: C.Companion = C
private val test2: TA = TA()
private val test2co = TA
// FILE: file2.kt
private val test1: <!INVISIBLE_REFERENCE!>C<!> = <!INVISIBLE_MEMBER!>C<!>()
private val test1co: <!INVISIBLE_REFERENCE!>C<!>.<!INVISIBLE_REFERENCE!>Companion<!> = <!INVISIBLE_MEMBER!>C<!>
private val test2: <!INVISIBLE_REFERENCE!>TA<!> = <!INVISIBLE_MEMBER!>TA<!>()
private val test2co = <!INVISIBLE_MEMBER!>TA<!>
private class <!REDECLARATION!>C<!>
private typealias <!REDECLARATION!>TA<!> = Int
@@ -0,0 +1,33 @@
package
private val test1: C
private val test1: C
private val test1co: C.Companion
private val test1co: C.Companion
private val test2: TA /* = C */
private val test2: TA /* = C */
private val test2co: C.Companion
private val test2co: C.Companion
private final class C {
public constructor C()
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 companion object Companion {
private constructor Companion()
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
}
}
private final class C {
public constructor C()
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
}
private typealias TA = C
private typealias TA = kotlin.Int