(Un)mute and add tests for vararg codegen

This commit is contained in:
Steven Schäfer
2019-07-30 15:45:59 +02:00
committed by max-kammerer
parent d22814f6da
commit ac667403ef
10 changed files with 68 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
// FILE: 1.kt
package test
inline fun <reified T> f(): Array<T> = arrayOf()
// FILE: 2.kt
import test.*
fun box(): String {
f<String>()
return "OK"
}
+16
View File
@@ -0,0 +1,16 @@
// FILE: 1.kt
package test
inline fun <reified T> f(x : () -> Unit) {
object { init { "OK" is T } }
}
// FILE: 2.kt
import test.*
fun box(): String {
f<String>() {}
return "OK"
}