[FE 1.0] Substitute anonymous object's supertypes while using that in public declarations
^KT-46136 Fixed
This commit is contained in:
committed by
teamcity
parent
2c5d817633
commit
3aabc8d666
@@ -0,0 +1,13 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
abstract class A<T> {
|
||||
fun print() = "OK"
|
||||
}
|
||||
|
||||
fun f() = test("")
|
||||
|
||||
private fun <T> test(t: T) =
|
||||
object : A<T>() {}
|
||||
|
||||
|
||||
fun box() = f().print()
|
||||
Reference in New Issue
Block a user