Put 'thisReceiver' declaration in class

Interfaces also have 'thisReceiver'
This commit is contained in:
Dmitry Petrov
2017-05-02 10:54:56 +03:00
parent 90ec53b3b0
commit fa4dc26814
103 changed files with 439 additions and 205 deletions
@@ -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
}
}