Files
kotlin-fork/compiler/testData/diagnostics/testsWithJvmBackend/scripts/enumCapturesProperty.kts
T
Ilya Chernikov 10c5071eda Implement backend error reporting on unsupported script capturing
#KT-30616 fixed
#KT-43995 fixed
#KT-19424 fixed
#KT-49443 fixed
2021-12-14 13:39:17 +03:00

11 lines
176 B
Kotlin
Vendored

// !RENDER_DIAGNOSTICS_FULL_TEXT
// TARGET_BACKEND: JVM_IR
// KT-30616
val foo = "hello"
<!SCRIPT_CAPTURING_ENUM!>enum class Bar(val s: String = foo) {
Eleven("0")
}<!>