Smart cast impossible on when subject is no more recorded #KT-10061 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-11-18 14:18:04 +03:00
parent 58dc88dd2c
commit 3a4f6d8226
7 changed files with 70 additions and 11 deletions
@@ -0,0 +1,10 @@
// See KT-10061
class My {
val x: Int? get() = 42
}
fun foo(my: My) {
my.x!!
when (my.x) { }
}