Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/fieldNameClash.kt
T
2021-12-15 17:14:22 +00:00

15 lines
263 B
Kotlin
Vendored

// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
OPTIONAL_JVM_INLINE_ANNOTATION
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"
}