kotlin - Kotlin 中的内部类创建失败

标签 kotlin

此代码示例无法编译并显示内部错误。

open class TestClass {
    open inner class Back {
        open fun dd() { }
    }
}

class Manager: TestClass() {
    private val test = object : Back() {
        override fun dd() { }
    }
}
原因:

Error generating constructors of class null with kind IMPLEMENTATION


这是什么意思?

最佳答案

提供的例子是指KT-11833现在编译。使用 Kotlin 1.1.0-beta-22 版进行了检查。

关于kotlin - Kotlin 中的内部类创建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36489883/

相关文章:

android - 将项目添加到列表时的文字参数警告

android - 检查浏览器是否打开(uiautomator/espresso 测试)

android - 三星 A10 android 11 如何从我的应用程序以编程方式创建其他应用程序固定快捷方式

android - EditText 中缺少光标和下划线

spring - 使用 kotlin-spring 插件,仍然得到 class not open 错误

Kotlin:列表中 BigDecimal 的总和

java - JUnit、@ControllerAdvice 以及 Kotlin 中缺乏检查异常

java - Hibernateflush()影响事务

Kotlin:具有可为空返回值的 BiFunction 无法编译

android - Lint 错误 : Suspicious equality check: equals() is not implemented in Object DiffUtilEquals