Files
kotlin-fork/compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt
T
Alexander Udalov 9f67fe2fe3 Adapt CompileKotlinAgainstKotlin test to black box format
Rename/remove some obsolete test cases
2016-03-02 15:47:35 +03:00

23 lines
308 B
Kotlin
Vendored

// FILE: A.kt
package aaa
enum class E {
TRIVIAL_ENTRY,
SUBCLASS { };
class Nested {
fun fortyTwo() = 42
}
}
// 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"
}