我在匿名内部类中,想要引用外部类的实例.在Java中,可以使用.this前面的类名来引用它来解决歧义.喜欢:MainActivity.this.我如何在Kotlin中实现同样的目标?因为编译器'expression 'this' cannot be a selector(occur after a dot)'在我这样做时抱怨.谢谢!
.this
MainActivity.this
'expression 'this' cannot be a selector(occur after a dot)'
kotlin
kotlin ×1