[FIR2IR] Add initial support of collection literals

This commit is contained in:
Mikhail Glukhikh
2020-05-07 18:12:17 +03:00
parent f3e2dbf360
commit 76f6e27e37
5 changed files with 22 additions and 2 deletions
@@ -56,6 +56,12 @@ FILE fqName:<root> fileName:/arrayInAnnotationArguments.kt
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit
annotations:
TestAnnWithIntArray(x = CALL 'public final fun intArrayOf (vararg elements: kotlin.Int): kotlin.IntArray declared in kotlin' type=kotlin.IntArray origin=null)
TestAnnWithStringArray(x = CALL 'public final fun arrayOf <T> (vararg elements: T of kotlin.arrayOf): kotlin.Array<T of kotlin.arrayOf> [inline] declared in kotlin' type=kotlin.Array<kotlin.String> origin=null)
BLOCK_BODY
FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit
annotations:
TestAnnWithIntArray(x = ['4', '5', '6'])
TestAnnWithStringArray(x = ['d', 'e', 'f'])
BLOCK_BODY