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:
Dmitry Petrov
2019-07-23 13:18:35 +03:00
parent 48ae76ac28
commit 6abb0ffe28
5 changed files with 45 additions and 4 deletions
@@ -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
-2
View File
@@ -1,5 +1,3 @@
// FIR_IDENTICAL
typealias Test1 = String
fun foo() {