Leads to creating (among other things) of following declaration:
external open class Module : ApiModule {
override var children: Array<Module>
override var children: Array<API.Module>
}
The introduction of first children is obviously a bug and, of course, this leads to a compilation errors:
a/aaa.mymodule.kt:23:18: error: conflicting declarations: public open var children: Array<mymodule.Module>, public open var children: Array<API.Module>
override var children: Array<Module>
^
a/aaa.mymodule.kt:23:28: error: type of 'children' doesn't match the type of the overridden var-property 'public abstract var children: Array<API.Module> defined in ApiModule'
override var children: Array<Module>
^
a/aaa.mymodule.kt:24:18: error: conflicting declarations: public open var children: Array<mymodule.Module>, public open var children: Array<API.Module>
override var children: Array<API.Module>
Following code:
Leads to creating (among other things) of following declaration:
The introduction of first children is obviously a bug and, of course, this leads to a compilation errors: