From 67668d798b8f9f75a0dc62c426b92b0e84885218 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 11 Feb 2020 23:22:55 +0300 Subject: [PATCH] FIR2IR: update test data --- compiler/testData/ir/irText/classes/classMembers.fir.txt | 7 +++++-- .../irText/stubs/genericClassInDifferentModule_m2.fir.txt | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/compiler/testData/ir/irText/classes/classMembers.fir.txt b/compiler/testData/ir/irText/classes/classMembers.fir.txt index 2a0abe229c8..2831e04e61c 100644 --- a/compiler/testData/ir/irText/classes/classMembers.fir.txt +++ b/compiler/testData/ir/irText/classes/classMembers.fir.txt @@ -70,13 +70,16 @@ FILE fqName: fileName:/classMembers.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - GET_VAR 'z: kotlin.Int declared in .C.' type=kotlin.Int origin=null + CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR ': .C declared in .C.' type=.C origin=null FUN name: visibility:public modality:FINAL <> ($this:.C, value:kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:propertyWithGetAndSet visibility:public modality:FINAL [var] $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - ERROR_CALL 'Unresolved reference: R|/z|' type=IrErrorType + SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Int visibility:private' type=kotlin.Unit origin=null + receiver: GET_VAR ': .C declared in .C.' type=.C origin=null + value: GET_VAR 'value: kotlin.Int declared in .C.' type=kotlin.Int origin=null FUN name:function visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C BLOCK_BODY diff --git a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule_m2.fir.txt b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule_m2.fir.txt index fbba014e8d9..367602668df 100644 --- a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule_m2.fir.txt +++ b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule_m2.fir.txt @@ -42,7 +42,8 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt $this: VALUE_PARAMETER name: type:.Derived1.Derived1> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): T of .Derived1 declared in .Derived1' - GET_VAR 'x: T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null + CALL 'public final fun (): T of .Derived1 declared in .Base' type=T of .Derived1 origin=null + $this: GET_VAR ': .Derived1.Derived1> declared in .Derived1.' type=.Derived1.Derived1> origin=null FUN name: visibility:public modality:FINAL <> ($this:.Derived1.Derived1>, value:T of .Derived1) returnType:kotlin.Unit correspondingProperty: PROPERTY name:exn visibility:public modality:FINAL [var] $this: VALUE_PARAMETER name: type:.Derived1.Derived1>