Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/ConstructorCallFromOutside.fir.kt
T
pyos e6d923f65c FIR: rename HIDDEN to INVISIBLE_REFERENCE
Some of them should be INVISIBLE_MEMBER though
2021-04-21 16:18:21 +03:00

11 lines
207 B
Kotlin
Vendored

// KT-7753: attempt to call enum constructor explicitly
enum class A(val c: Int) {
ONE(1),
TWO(2);
}
fun createA(): A {
// Error should be here!
return <!INVISIBLE_REFERENCE!>A<!>(10)
}