IR: IrTypeAlias: Update FIR2IR testData
NB a lot of FIR2IR tests actually don't pass, and we don't care much at the moment.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
FILE fqName:<root> fileName:/fileWithTypeAliasesOnly.kt
|
||||
@@ -1,3 +1 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
typealias Bar<T> = (T) -> String
|
||||
@@ -0,0 +1,23 @@
|
||||
FILE fqName:<root> fileName:/typeAlias.kt
|
||||
FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
||||
BLOCK_BODY
|
||||
BLOCK type=kotlin.Unit origin=null
|
||||
CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
@@ -1,5 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
typealias Test1 = String
|
||||
|
||||
fun foo() {
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
FILE fqName:<root> fileName:/abbreviatedTypes.kt
|
||||
FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.collections.List<kotlin.Int>) returnType:kotlin.collections.List<kotlin.Int>
|
||||
VALUE_PARAMETER name:x index:0 type:kotlin.collections.List<kotlin.Int>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test1 (x: kotlin.collections.List<kotlin.Int>): kotlin.collections.List<kotlin.Int> declared in <root>'
|
||||
GET_VAR 'x: kotlin.collections.List<kotlin.Int> declared in <root>.test1' type=kotlin.collections.List<kotlin.Int> origin=null
|
||||
FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>) returnType:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>
|
||||
VALUE_PARAMETER name:x index:0 type:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test2 (x: kotlin.collections.List<kotlin.collections.List<kotlin.Int>>): kotlin.collections.List<kotlin.collections.List<kotlin.Int>> declared in <root>'
|
||||
GET_VAR 'x: kotlin.collections.List<kotlin.collections.List<kotlin.Int>> declared in <root>.test2' type=kotlin.collections.List<kotlin.collections.List<kotlin.Int>> origin=null
|
||||
FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>) returnType:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>
|
||||
VALUE_PARAMETER name:x index:0 type:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.collections.List<kotlin.collections.List<kotlin.Int>>): kotlin.collections.List<kotlin.collections.List<kotlin.Int>> declared in <root>'
|
||||
GET_VAR 'x: kotlin.collections.List<kotlin.collections.List<kotlin.Int>> declared in <root>.test3' type=kotlin.collections.List<kotlin.collections.List<kotlin.Int>> origin=null
|
||||
FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>) returnType:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>
|
||||
VALUE_PARAMETER name:x index:0 type:kotlin.collections.List<kotlin.collections.List<kotlin.Int>>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test4 (x: kotlin.collections.List<kotlin.collections.List<kotlin.Int>>): kotlin.collections.List<kotlin.collections.List<kotlin.Int>> declared in <root>'
|
||||
GET_VAR 'x: kotlin.collections.List<kotlin.collections.List<kotlin.Int>> declared in <root>.test4' type=kotlin.collections.List<kotlin.collections.List<kotlin.Int>> origin=null
|
||||
Reference in New Issue
Block a user