Can be parameter inspection: use inside object literals is now handled as "property use"
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user