Fix test data for IR fake override tests

This commit is contained in:
Mikhail Glukhikh
2024-03-05 16:47:31 +01:00
committed by Space Team
parent 266669272d
commit 60f9206d3b
36 changed files with 101 additions and 1468 deletions
@@ -1291,7 +1291,7 @@ FILE fqName:<root> fileName:/1.kt
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
p0: CONST Int type=kotlin.Int value=0
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CALL 'public open fun remove (): @[FlexibleNullability] kotlin.Int? declared in <root>.C' type=@[FlexibleNullability] kotlin.Int? origin=null
CALL 'public open fun remove (): @[FlexibleNullability] kotlin.Int? declared in <root>.C' type=kotlin.Int? origin=null
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CALL 'public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] kotlin.Int? declared in <root>.C' type=@[EnhancedNullability] kotlin.Int? origin=null
@@ -1325,15 +1325,15 @@ FILE fqName:<root> fileName:/1.kt
$this: VALUE_PARAMETER name:<this> type:kotlin.collections.MutableList<kotlin.Any?>
VALUE_PARAMETER name:fromIndex index:0 type:kotlin.Int
VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<kotlin.Any?>) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
overridden:
public open fun toArray (): @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? declared in <root>.Java1
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <T> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>, p0:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<kotlin.Any?>
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <T> ($this:java.util.AbstractCollection<kotlin.Any?>, p0:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
overridden:
public open fun toArray <T> (p0: @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?): @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? declared in <root>.Java1
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<kotlin.Any?>
VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
@@ -1501,15 +1501,15 @@ FILE fqName:<root> fileName:/1.kt
$this: VALUE_PARAMETER name:<this> type:kotlin.collections.MutableList<kotlin.Any?>
VALUE_PARAMETER name:fromIndex index:0 type:kotlin.Int
VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<kotlin.Any?>) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
overridden:
public open fun toArray (): @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? declared in <root>.E
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <T> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>, p0:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<kotlin.Any?>
FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <T> ($this:java.util.AbstractCollection<kotlin.Any?>, p0:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?) returnType:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? [fake_override]
overridden:
public open fun toArray <T> (p0: @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?): @[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>? declared in <root>.E
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.Any?>
$this: VALUE_PARAMETER name:<this> type:java.util.AbstractCollection<kotlin.Any?>
VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] @[FlexibleArrayElementVariance] kotlin.Array<out @[FlexibleNullability] kotlin.Any?>?
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
@@ -437,7 +437,7 @@ FILE fqName:<root> fileName:/1.kt
p0: CONST Int type=kotlin.Int value=2
p1: CONST Int type=kotlin.Int value=2
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CALL 'public open fun get (p0: kotlin.Int): @[FlexibleNullability] @[EnhancedNullability] T of <root>.B? declared in <root>.B' type=@[EnhancedNullability] @[FlexibleNullability] kotlin.Int? origin=null
CALL 'public open fun get (p0: kotlin.Int): @[FlexibleNullability] @[EnhancedNullability] T of <root>.B? declared in <root>.B' type=@[EnhancedNullability] kotlin.Int? origin=null
$this: GET_VAR 'b: <root>.B<kotlin.Int?> declared in <root>.test' type=<root>.B<kotlin.Int?> origin=null
p0: CONST Int type=kotlin.Int value=1
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
@@ -394,7 +394,7 @@ FILE fqName:<root> fileName:/1.kt
$this: GET_VAR 'a: <root>.A<kotlin.Int?> declared in <root>.test' type=<root>.A<kotlin.Int?> origin=null
element: CONST Null type=kotlin.Nothing? value=null
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CALL 'public open fun get (index: kotlin.Int): @[FlexibleNullability] T of <root>.A? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
CALL 'public open fun get (index: kotlin.Int): @[FlexibleNullability] T of <root>.A? declared in <root>.A' type=kotlin.Int? origin=null
$this: GET_VAR 'a: <root>.A<kotlin.Int?> declared in <root>.test' type=<root>.A<kotlin.Int?> origin=null
index: CONST Int type=kotlin.Int value=1
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
@@ -406,7 +406,7 @@ FILE fqName:<root> fileName:/1.kt
$this: GET_VAR 'a: <root>.A<kotlin.Int?> declared in <root>.test' type=<root>.A<kotlin.Int?> origin=null
element: CONST Null type=kotlin.Nothing? value=null
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
CALL 'public abstract fun removeAt (index: kotlin.Int): @[FlexibleNullability] T of <root>.A? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
CALL 'public abstract fun removeAt (index: kotlin.Int): @[FlexibleNullability] T of <root>.A? declared in <root>.A' type=kotlin.Int? origin=null
$this: GET_VAR 'a: <root>.A<kotlin.Int?> declared in <root>.test' type=<root>.A<kotlin.Int?> origin=null
index: CONST Int type=kotlin.Int value=1
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
@@ -468,8 +468,8 @@ FILE fqName:<root> fileName:/1.kt
key: CONST Boolean type=kotlin.Boolean value=false
value: CONST Boolean type=kotlin.Boolean value=false
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Boolean type=kotlin.Boolean value=true
value: CONST Boolean type=kotlin.Boolean value=true
@@ -34,6 +34,6 @@ fun test(a: A<Boolean>, b: B<Boolean?>) {
a.remove(key = true) /*~> Unit */
b.<get-size>() /*~> Unit */
b.put(key = false, value = false) /*~> Unit */
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = true, value = true)
b.set<Boolean?, Boolean?>(key = true, value = true)
b.remove(key = null) /*~> Unit */
}
@@ -444,14 +444,14 @@ FILE fqName:<root> fileName:/1.kt
key: CONST Null type=kotlin.Nothing? value=null
value: CONST Null type=kotlin.Nothing? value=null
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Null type=kotlin.Nothing? value=null
value: CONST Null type=kotlin.Nothing? value=null
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Boolean type=kotlin.Boolean value=true
value: CONST Boolean type=kotlin.Boolean value=true
@@ -39,8 +39,8 @@ fun test(a: A<Boolean>, b: B<Boolean?>) {
b.<get-size>() /*~> Unit */
b.put(key = false, value = false) /*~> Unit */
b.put(key = null, value = null) /*~> Unit */
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = null, value = null)
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = true, value = true)
b.set<Boolean?, Boolean?>(key = null, value = null)
b.set<Boolean?, Boolean?>(key = true, value = true)
b.get(key = null) /*~> Unit */
b.get(key = true) /*~> Unit */
b.remove(key = null) /*~> Unit */
@@ -394,14 +394,14 @@ FILE fqName:<root> fileName:/1.kt
key: CONST Null type=kotlin.Nothing? value=null
value: CONST Null type=kotlin.Nothing? value=null
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Null type=kotlin.Nothing? value=null
value: CONST Null type=kotlin.Nothing? value=null
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Boolean type=kotlin.Boolean value=true
value: CONST Boolean type=kotlin.Boolean value=true
@@ -35,8 +35,8 @@ fun test(a: A<Boolean>, b: B<Boolean?>) {
b.<get-size>() /*~> Unit */
b.put(key = false, value = false) /*~> Unit */
b.put(key = null, value = null) /*~> Unit */
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = null, value = null)
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = true, value = true)
b.set<Boolean?, Boolean?>(key = null, value = null)
b.set<Boolean?, Boolean?>(key = true, value = true)
b.get(key = null) /*~> Unit */
b.get(key = true) /*~> Unit */
b.remove(key = null) /*~> Unit */
@@ -640,14 +640,14 @@ FILE fqName:<root> fileName:/1.kt
key: CONST Null type=kotlin.Nothing? value=null
value: CONST Null type=kotlin.Nothing? value=null
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Null type=kotlin.Nothing? value=null
value: CONST Null type=kotlin.Nothing? value=null
CALL 'public final fun set <K, V> (key: K of kotlin.collections.set, value: V of kotlin.collections.set): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null
<K>: @[FlexibleNullability] kotlin.Boolean?
<V>: @[FlexibleNullability] kotlin.Boolean?
<K>: kotlin.Boolean?
<V>: kotlin.Boolean?
$receiver: GET_VAR 'b: <root>.B<kotlin.Boolean?> declared in <root>.test' type=<root>.B<kotlin.Boolean?> origin=null
key: CONST Boolean type=kotlin.Boolean value=true
value: CONST Boolean type=kotlin.Boolean value=true
@@ -50,8 +50,8 @@ fun test(a: A<Boolean>, b: B<Boolean?>) {
b.<get-size>() /*~> Unit */
b.put(key = false, value = false) /*~> Unit */
b.put(key = null, value = null) /*~> Unit */
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = null, value = null)
b.set<@FlexibleNullability Boolean?, @FlexibleNullability Boolean?>(key = true, value = true)
b.set<Boolean?, Boolean?>(key = null, value = null)
b.set<Boolean?, Boolean?>(key = true, value = true)
b.get(key = null) /*~> Unit */
b.get(key = true) /*~> Unit */
b.remove(key = null) /*~> Unit */