Can be parameter inspection: use inside function literals is now handled as "property use" #KT-11949 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
ae2e3f1811
commit
795b92461e
@@ -103,3 +103,17 @@ class ModifiedInInit(var x: Int) {
|
||||
open class UsedInOverride(val x: Int)
|
||||
|
||||
class UserInOverride(override val x: Int) : UsedInOverride(x)
|
||||
// NO
|
||||
class UsedInLambda(val x: Int) {
|
||||
init {
|
||||
run {
|
||||
val y = x
|
||||
}
|
||||
}
|
||||
}
|
||||
// NO
|
||||
class UsedInDelegate(val x: Int) {
|
||||
val y: Int by lazy {
|
||||
x * x
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user