support property access in pattern matching expressions
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class C(val p: Boolean) { }
|
||||
|
||||
fun box(): String {
|
||||
val c = C(true)
|
||||
return when(c) {
|
||||
.p => "OK"
|
||||
else => "fail"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user