[LL FIR] rewrote in-block modifications logic
Now we will invalidate bodies for FIR declarations immediately after in-block modifications in these declarations We assume that such in-block modifications can happen only under write action, so it should be safe to make changes for FirFile ^KT-59687 Fixed ^KT-59199 Fixed ^KTIJ-26066 Fixed
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import kotlin.contracts.contract
|
||||
|
||||
class A {
|
||||
var x: Int
|
||||
ge<caret>t() {
|
||||
contract {
|
||||
req
|
||||
}
|
||||
|
||||
fun doSmth(i: String) = 4
|
||||
return doSmth("str")
|
||||
}
|
||||
set(value) = Unit
|
||||
}
|
||||
Reference in New Issue
Block a user