[Test] Fix syntax errors in few boxInline tests
This commit is contained in:
committed by
TeamCityServer
parent
27f0d938c9
commit
df60e7368a
+2
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user