Can be parameter inspection: usages in all functions are now handled as property usage

This commit is contained in:
Mikhail Glukhikh
2016-04-29 15:44:20 +03:00
parent d646afabb2
commit 48ba63fa27
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -126,4 +126,13 @@ class UsedInObjectLiteral(val x: Int) {
val y = object: Any() {
fun bar() = x
}
}
// NO
class UsedInLocalFunction(val x: Int) {
init {
fun local() {
val y = x
}
local()
}
}