Detect and report inner classes capturing script instance
This commit is contained in:
committed by
TeamCityServer
parent
e865652602
commit
c1c94778ce
+1
-1
@@ -5,7 +5,7 @@
|
||||
// KT-19423
|
||||
val used = "abc"
|
||||
class User {
|
||||
val property = used // error: Expression is inaccessible from a nested class
|
||||
val property = used
|
||||
}
|
||||
|
||||
val rv = User().property
|
||||
|
||||
Reference in New Issue
Block a user