[Test] Fix syntax errors in few boxInline tests

This commit is contained in:
Dmitriy Novozhilov
2021-05-14 15:45:28 +03:00
committed by TeamCityServer
parent 27f0d938c9
commit df60e7368a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ inline fun <reified T : Any> test(): String {
return (object : S<T> {
}::class.java.genericInterfaces[0] as ParameterizedType).actualTypeArguments[0].getTypeName()
}
// FILE: 2.kt
import test.*
@@ -23,4 +24,4 @@ import test.*
fun box():String {
val test = test<OK>()
return if (test == OK::class.qualifiedName) "OK" else "fail: $test"
}
}
+2 -1
View File
@@ -16,6 +16,7 @@ inline fun <reified T : Any> test(): String {
return ((object : S<S<T>> {
}::class.java.genericInterfaces[0] as ParameterizedType).actualTypeArguments[0] as ParameterizedType).actualTypeArguments[0].getTypeName()
}
// FILE: 2.kt
import test.*
@@ -23,4 +24,4 @@ import test.*
fun box():String {
val test = test<OK>()
return if (test == OK::class.qualifiedName) "OK" else "fail: $test"
}
}