[Test] Add test for KT-41198 and KT-59860
This commit is contained in:
committed by
Space Team
parent
2ad441f6c8
commit
a35b3bfd17
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// ISSUE: KT-41198, KT-59860
|
||||
|
||||
fun test() {
|
||||
val b: Int
|
||||
run { b = 1 }<!UNNECESSARY_SAFE_CALL!>?.<!>let {}
|
||||
<!UNINITIALIZED_VARIABLE!>b<!>.inc()
|
||||
}
|
||||
Reference in New Issue
Block a user