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,8 @@
class Outer<T>(val x: T) {
open inner class Inner(val y: Int)
}
fun Outer<Int>.test() =
object : Outer<Int>.Inner(42) {
val xx = x + y
}