Change outer scope for nested class and object -- removed implicit outer class receiver.
#KT-5362 Fixed #KT-8814 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !DIAGNOSTICS_NUMBER: 1
|
||||
// !DIAGNOSTICS: INACCESSIBLE_OUTER_CLASS_EXPRESSION
|
||||
|
||||
class A {
|
||||
class B {
|
||||
val r = object {
|
||||
fun bar() = this@A
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user