Put 'thisReceiver' declaration in class
Interfaces also have 'thisReceiver'
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Outer {
|
||||
open inner class Inner(val x: Int)
|
||||
}
|
||||
|
||||
class Host(val y: Int) {
|
||||
fun Outer.test() = object : Outer.Inner(42) {
|
||||
val xx = x + y
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user