Smart cast impossible on when subject is no more recorded #KT-10061 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// See KT-10061
|
||||
|
||||
class My {
|
||||
val x: Int? get() = 42
|
||||
}
|
||||
|
||||
fun foo(my: My) {
|
||||
my.x!!
|
||||
when (my.x) { }
|
||||
}
|
||||
Reference in New Issue
Block a user