Creating deep copy of local function declaration instructions in CFA, regression test #KT-10243 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-12-01 17:30:31 +03:00
committed by Mikhail Glukhikh
parent 36206ddf6d
commit 60e457167d
6 changed files with 64 additions and 1 deletions
@@ -0,0 +1,16 @@
val f: Boolean = true
private fun doUpdateRegularTasks() {
try {
while (f) {
val xmlText = <!UNRESOLVED_REFERENCE!>getText<!>()
if (<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>xmlText<!> <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>==<!> null) {}
else {
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>xmlText<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>value<!> = 0 // !!!
}
}
}
finally {
fun execute() {}
}
}
@@ -0,0 +1,4 @@
package
public val f: kotlin.Boolean = true
private fun doUpdateRegularTasks(): kotlin.Unit