mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
198 B
Kotlin
Vendored
13 lines
198 B
Kotlin
Vendored
class C(val p: Boolean) { }
|
|
|
|
fun box(): String {
|
|
val c = C(true)
|
|
|
|
// Commented for KT-621
|
|
// return when(c) {
|
|
// .p => "OK"
|
|
// else => "fail"
|
|
// }
|
|
return if (c.p) "OK" else "fail"
|
|
}
|