FIR2IR: insert spread for named argument against primitive vararg
#KT-60312 Fixed
This commit is contained in:
committed by
Space Team
parent
4abce54748
commit
4913c38e98
@@ -1,16 +0,0 @@
|
||||
FILE fqName:<root> fileName:/IntArrayAsVararg.kt
|
||||
FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
||||
BLOCK_BODY
|
||||
CALL 'public final fun consumeVarargs (vararg arr: kotlin.Int): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
|
||||
arr: VARARG type=kotlin.IntArray varargElementType=kotlin.Int
|
||||
CONST Int type=kotlin.Int value=1
|
||||
CONST Int type=kotlin.Int value=2
|
||||
CALL 'public final fun consumeVarargs (vararg arr: kotlin.Int): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null
|
||||
arr: VARARG type=kotlin.IntArray varargElementType=kotlin.Int
|
||||
CALL 'public final fun intArrayOf (vararg elements: kotlin.Int): kotlin.IntArray declared in kotlin' type=kotlin.IntArray origin=null
|
||||
elements: VARARG type=kotlin.IntArray varargElementType=kotlin.Int
|
||||
CONST Int type=kotlin.Int value=41
|
||||
CONST Int type=kotlin.Int value=42
|
||||
FUN name:consumeVarargs visibility:public modality:FINAL <> (arr:kotlin.IntArray) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:arr index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg]
|
||||
BLOCK_BODY
|
||||
@@ -1,7 +0,0 @@
|
||||
fun main() {
|
||||
consumeVarargs(arr = [1, 2])
|
||||
consumeVarargs(arr = [intArrayOf(elements = [41, 42])])
|
||||
}
|
||||
|
||||
fun consumeVarargs(vararg arr: Int) {
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-60312
|
||||
// SKIP_SIGNATURE_DUMP
|
||||
|
||||
Reference in New Issue
Block a user