[FIR] Don't save DFA implications for unstable local vars
^KT-57502 Fixed
This commit is contained in:
committed by
Space Team
parent
31424e38ac
commit
40b8b682f9
+13
@@ -0,0 +1,13 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-57502
|
||||
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
fun test(foo: Any) {
|
||||
var test by Delegates.observable(true) { property, oldValue, newValue -> }
|
||||
test = foo is String
|
||||
if (test) {
|
||||
foo.<!UNRESOLVED_REFERENCE!>length<!> // no smartcast
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user