correctly generate safe casts from Unit type
#KT-4494 fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun foo() {}
|
||||
|
||||
fun bar(): Int? = foo() as? Int
|
||||
|
||||
fun box(): String {
|
||||
return if (bar() == null) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user