[FE 1.0] Substitute anonymous object's supertypes while using that in public declarations

^KT-46136 Fixed
This commit is contained in:
Victor Petukhov
2022-02-21 16:18:19 +03:00
committed by teamcity
parent 2c5d817633
commit 3aabc8d666
11 changed files with 77 additions and 1 deletions
+13
View File
@@ -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()