Can be parameter inspection: use inside object literals is now handled as "property use"

This commit is contained in:
Mikhail Glukhikh
2016-04-27 13:49:00 +03:00
parent 64ae9af3a4
commit 1744897561
2 changed files with 8 additions and 3 deletions
+6
View File
@@ -120,4 +120,10 @@ class UsedInDelegate(val x: Int) {
// NO
class UsedInParent(val x: UsedInParent?) {
val y = x?.x
}
// NO
class UsedInObjectLiteral(val x: Int) {
val y = object: Any() {
fun bar() = x
}
}