e5b96561e0
otherwise, reference to the super type would be resolved even when it's not e.g. for interface constructor ^ KTIJ-24437
14 lines
395 B
Kotlin
Vendored
14 lines
395 B
Kotlin
Vendored
// COMPARE_WITH_LIGHT_TREE
|
|
// FILE: test.kt
|
|
enum class MyEnum(): <!CLASS_IN_SUPERTYPE_FOR_ENUM!>MyClass<!>() {}
|
|
enum class MyEnum2(): MyTrait {}
|
|
enum class MyEnum2_1(): <!UNRESOLVED_REFERENCE!>MyTrait<!>() {}
|
|
enum class MyEnum3(): <!CLASS_IN_SUPERTYPE_FOR_ENUM, FINAL_SUPERTYPE, INVISIBLE_REFERENCE!>MyEnumBase<!>() {}
|
|
|
|
open class MyClass() {}
|
|
|
|
enum class MyEnumBase() {}
|
|
|
|
interface MyTrait {}
|
|
|