Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/ConstructorCallFromOutside.fir.kt
T

11 lines
210 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 <!INAPPLICABLE_CANDIDATE!>A<!>(10)
}