Reorganize diagnostics tests with stdlib and reflect

DiagnosticsTestWithStdLib now require stdlib only.
Move test data accordingly.
The only test that required kotlin-reflect is transformed into
codegen box test.
This commit is contained in:
Ilya Gorbunov
2019-12-25 22:14:12 +03:00
parent ec6fdc5d4d
commit ac790bea71
19 changed files with 54 additions and 93 deletions
+15
View File
@@ -0,0 +1,15 @@
// 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()
}