Transform anonymous types even for public symbols
This became necessary when we removed the requirement to specify types for public members, because otherwise everything fails not being able to locate the anonymous class from another module #KT-9072 Fixed EA-72801
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package pkg
|
||||
|
||||
interface ClassA {
|
||||
companion object {
|
||||
val DEFAULT = object : ClassA {
|
||||
override fun toString() = "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import pkg.ClassA
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val obj = ClassA.DEFAULT
|
||||
obj.toString()
|
||||
}
|
||||
Reference in New Issue
Block a user