Files
kotlin-fork/compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt
T

25 lines
344 B
Kotlin
Vendored

// MODULE: lib
// FILE: A.kt
package aaa
enum class E {
TRIVIAL_ENTRY,
SUBCLASS { };
class Nested {
fun fortyTwo() = 42
}
}
// MODULE: main(lib)
// FILE: B.kt
import aaa.E.*
fun box(): String {
if (TRIVIAL_ENTRY == SUBCLASS) return "Fail 1"
if (Nested().fortyTwo() != 42) return "Fail 2"
return "OK"
}