coerce condition value to Type.BOOLEAN (KT-2147)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
fun isOk() = true
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val foo: Foo? = Foo()
|
||||
if (foo?.isOk()!!) return "OK"
|
||||
return "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user