ac790bea71
DiagnosticsTestWithStdLib now require stdlib only. Move test data accordingly. The only test that required kotlin-reflect is transformed into codegen box test.
15 lines
277 B
Kotlin
Vendored
15 lines
277 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_REFLECT
|
|
|
|
// KT-9345 Type inference failure
|
|
fun Class<*>.foo(): Any? = kotlin.objectInstance
|
|
|
|
|
|
object OK {
|
|
override fun toString(): String = "OK"
|
|
}
|
|
|
|
fun box(): String {
|
|
return OK::class.java.foo().toString()
|
|
} |