Inner class creates failure in Kotlin

This sample code cannot be compiled and an internal error is displayed.

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

Cause:

Error creating null class constructors with implementation type

What does it mean?

+5
source share
1 answer

The above example applies to KT-11833 and is now compiling. Tested with Kotlin version 1.1.0-beta-22.

0
source

Source: https://habr.com/ru/post/1246667/


All Articles