Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt
T
2021-10-11 12:09:52 +03:00

14 lines
263 B
Kotlin
Vendored

// WITH_RUNTIME
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class Z(val s: String) {
val Int.s: Int get() = 42
}
fun box(): String {
if (Z("a").toString() == "Z(s=a)")
return "OK"
return "Fail"
}