[FIR2IR] Enable type parameter index >= 0 requirement
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@ FILE fqName:<root> fileName:/typeParameterBeforeBound.kt
|
||||
CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test1<T of <root>.Test1, U of <root>.Test1>
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[U of <root>.Test1]
|
||||
TYPE_PARAMETER name:U index:0 variance: superTypes:[kotlin.Any?]
|
||||
TYPE_PARAMETER name:U index:1 variance: superTypes:[kotlin.Any?]
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.Test1<T of <root>.Test1, U of <root>.Test1> [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
@@ -22,13 +22,13 @@ FILE fqName:<root> fileName:/typeParameterBeforeBound.kt
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:test2 visibility:public modality:FINAL <T, U> () returnType:kotlin.Unit
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[U of <root>.test2]
|
||||
TYPE_PARAMETER name:U index:0 variance: superTypes:[kotlin.Any?]
|
||||
TYPE_PARAMETER name:U index:1 variance: superTypes:[kotlin.Any?]
|
||||
BLOCK_BODY
|
||||
PROPERTY name:test3 visibility:public modality:FINAL [var]
|
||||
FUN name:<get-test3> visibility:public modality:FINAL <T, U> ($receiver:<root>.Test1<T of <root>.<get-test3>, U of <root>.<get-test3>>) returnType:kotlin.Unit
|
||||
correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [var]
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[U of <root>.<get-test3>]
|
||||
TYPE_PARAMETER name:U index:0 variance: superTypes:[kotlin.Any?]
|
||||
TYPE_PARAMETER name:U index:1 variance: superTypes:[kotlin.Any?]
|
||||
$receiver: VALUE_PARAMETER name:<this> type:<root>.Test1<T of <root>.<get-test3>, U of <root>.<get-test3>>
|
||||
BLOCK_BODY
|
||||
FUN name:<set-test3> visibility:public modality:FINAL <T, U> ($receiver:<root>.Test1<T of <root>.<get-test3>, U of <root>.<get-test3>>, value:kotlin.Unit) returnType:kotlin.Unit
|
||||
|
||||
@@ -61,7 +61,7 @@ FILE fqName:<root> fileName:/implicitCastToNonNull.kt
|
||||
GET_VAR 'x: kotlin.Any? declared in <root>.test4' type=kotlin.Any? origin=null
|
||||
FUN name:test5 visibility:public modality:FINAL <T, S> (x:T of <root>.test5, fn:kotlin.Function1<S of <root>.test5, kotlin.Unit>) returnType:kotlin.Unit
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[S of <root>.test5?]
|
||||
TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?]
|
||||
TYPE_PARAMETER name:S index:1 variance: superTypes:[kotlin.Any?]
|
||||
VALUE_PARAMETER name:x index:0 type:T of <root>.test5
|
||||
VALUE_PARAMETER name:fn index:1 type:kotlin.Function1<S of <root>.test5, kotlin.Unit>
|
||||
BLOCK_BODY
|
||||
|
||||
Reference in New Issue
Block a user