Files
kotlin-fork/compiler/testData/ir/irText/expressions/genericPropertyCall.txt
T
Dmitry Petrov 13a7270129 Generate type parameter declarations for property accessors
This requires "scoped" type parameter symbols, because in the ugly world
of descriptors property accessors have no type parameters of their own.
2018-03-02 14:35:35 +03:00

21 lines
1.2 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/genericPropertyCall.kt
PROPERTY name:id type:T visibility:public modality:FINAL flags:val
FUN name:<get-id> visibility:public modality:FINAL <T> ($receiver:T) returnType:T flags:
TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?]
superClassifiers:
CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags:
$receiver: VALUE_PARAMETER name:<this> type:T flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-id>() on T: T'
GET_VAR 'this@id: T' type=T origin=null
PROPERTY name:test type:kotlin.String visibility:public modality:FINAL flags:val
FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.String visibility:public
EXPRESSION_BODY
CALL '<get-id>() on String: String' type=kotlin.String origin=GET_PROPERTY
$receiver: CONST String type=kotlin.String value=abc
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test> visibility:public modality:FINAL <> () returnType:String flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test>(): String'
GET_FIELD 'test: String' type=kotlin.String origin=null