(Un)mute and add tests for vararg codegen
This commit is contained in:
committed by
max-kammerer
parent
d22814f6da
commit
ac667403ef
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user