Put 'thisReceiver' declaration in class
Interfaces also have 'thisReceiver'
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user