Can be val inspection: local functions are taken into account #KT-13151 Fixed

(cherry picked from commit 57eb4c1)
This commit is contained in:
Mikhail Glukhikh
2016-07-25 16:20:50 +03:00
committed by Mikhail Glukhikh
parent 0380b6cd88
commit 8600e7348c
2 changed files with 27 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
fun run(f: () -> Unit) = f()
fun foo() {
var a: Int
a = 10
run {
a = 20
}
}