[FIR] Fix resolving to star import member instead of builtin (^KT-48157 Fixed)

This commit is contained in:
Ivan Kochurkin
2021-08-19 22:43:57 +03:00
committed by Space
parent bb27ae2b42
commit 34cc7e5199
23 changed files with 262 additions and 137 deletions
@@ -0,0 +1,24 @@
// FIR_IDENTICAL
// https://youtrack.jetbrains.com/issue/KT-48157
import TestEnum.*
enum class TestEnum {
Annotation,
Collection,
Set,
List,
Map,
Function,
Enum
}
fun test() {
val x1 = Annotation
val x2 = Collection
val x3 = Set
val x4 = List
val x5 = Map
val x6 = Function
val x7 = Enum
}
@@ -0,0 +1,34 @@
package
public fun test(): kotlin.Unit
public final enum class TestEnum : kotlin.Enum<TestEnum> {
enum entry Annotation
enum entry Collection
enum entry Set
enum entry List
enum entry Map
enum entry Function
enum entry Enum
private constructor TestEnum()
public final override /*1*/ /*fake_override*/ val name: kotlin.String
public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: TestEnum): kotlin.Int
public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
protected/*protected and package*/ final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun finalize(): kotlin.Unit
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<TestEnum!>!
public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): TestEnum
public final /*synthesized*/ fun values(): kotlin.Array<TestEnum>
}