FIR2IR KT-46578 add overridden properties generation

This commit is contained in:
Mikhail Glukhikh
2021-05-13 09:18:42 +03:00
committed by teamcityserver
parent 53c1de172f
commit a255f44d6e
29 changed files with 163 additions and 4 deletions
@@ -79,6 +79,8 @@ FILE fqName:<root> fileName:/genericClassInDifferentModule_m2.kt
CALL 'public final fun <get-x> (): T of <root>.Derived1 [fake_override] declared in <root>.Derived1' type=T of <root>.Derived1 origin=GET_PROPERTY
$this: GET_VAR '<this>: <root>.Derived1<T of <root>.Derived1> declared in <root>.Derived1.foo' type=<root>.Derived1<T of <root>.Derived1> origin=null
PROPERTY name:bar visibility:public modality:FINAL [var]
overridden:
public abstract bar: T of <root>.Base [var]
FIELD PROPERTY_BACKING_FIELD name:bar type:T of <root>.Derived1 visibility:private
EXPRESSION_BODY
GET_VAR 'x: T of <root>.Derived1 declared in <root>.Derived1.<init>' type=T of <root>.Derived1 origin=null
@@ -102,6 +104,8 @@ FILE fqName:<root> fileName:/genericClassInDifferentModule_m2.kt
receiver: GET_VAR '<this>: <root>.Derived1<T of <root>.Derived1> declared in <root>.Derived1.<set-bar>' type=<root>.Derived1<T of <root>.Derived1> origin=null
value: GET_VAR '<set-?>: T of <root>.Derived1 declared in <root>.Derived1.<set-bar>' type=T of <root>.Derived1 origin=null
PROPERTY name:exn visibility:public modality:FINAL [var]
overridden:
public abstract exn: T of <root>.Base [var]
FUN name:<get-exn> visibility:public modality:FINAL <Z> ($this:<root>.Derived1<T of <root>.Derived1>, $receiver:Z of <root>.Derived1.<get-exn>) returnType:T of <root>.Derived1
correspondingProperty: PROPERTY name:exn visibility:public modality:FINAL [var]
overridden: