Fix test data for IR fake override tests
This commit is contained in:
committed by
Space Team
parent
266669272d
commit
60f9206d3b
-138
@@ -1,138 +0,0 @@
|
||||
FILE fqName:<root> fileName:/1.kt
|
||||
CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.A [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.Java1) returnType:@[FlexibleNullability] T of <root>.A.bar? [fake_override]
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.A.foo?) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.A.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.B) returnType:T of <root>.B.bar?
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.B, a:T of <root>.B.foo?) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.B.foo?
|
||||
BLOCK_BODY
|
||||
FUN name:test visibility:public modality:FINAL <> (a:<root>.A, b:<root>.B) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:a index:0 type:<root>.A
|
||||
VALUE_PARAMETER name:b index:1 type:<root>.B
|
||||
BLOCK_BODY
|
||||
VAR name:k type:kotlin.Int [val]
|
||||
TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k2 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k3 type:kotlin.Any [val]
|
||||
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Any? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Any?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k4 type:kotlin.Nothing [val]
|
||||
TYPE_OP type=kotlin.Nothing origin=IMPLICIT_NOTNULL typeOperand=kotlin.Nothing
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Nothing? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.collections.List<kotlin.Nothing?>?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k5 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
VAR name:k7 type:kotlin.Any? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B' type=kotlin.Any? origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
VAR name:k8 type:kotlin.Nothing? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar? declared in <root>.B' type=kotlin.Nothing? origin=null
|
||||
<T>: kotlin.Nothing
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo?): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
-42
@@ -1,42 +0,0 @@
|
||||
class A : Java1 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class B : Java1 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any> bar(): T? {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any> foo(a: T?) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test(a: A, b: B) {
|
||||
val k: Int = a.bar<@FlexibleNullability Int?>() /*!! Int */
|
||||
val k2: Int? = a.bar<@FlexibleNullability Int?>()
|
||||
val k3: Any = a.bar<@FlexibleNullability Any?>() /*!! Any */
|
||||
val k4: Nothing = a.bar<@FlexibleNullability Nothing?>() /*!! Nothing */
|
||||
a.foo<@FlexibleNullability Int?>(a = 1)
|
||||
a.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
a.foo<Int?>(a = null)
|
||||
a.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k5: Int? = b.bar<Int>()
|
||||
val k7: Any? = b.bar<Any>()
|
||||
val k8: Nothing? = b.bar<Nothing>()
|
||||
b.foo<Int>(a = 1)
|
||||
b.foo<Nothing>(a = null)
|
||||
b.foo<Int>(a = null)
|
||||
b.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM
|
||||
// FULL_JDK
|
||||
// WITH_STDLIB
|
||||
|
||||
Vendored
+1
-1
@@ -234,7 +234,7 @@ FILE fqName:<root> fileName:/1.kt
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
||||
CALL 'public abstract fun bar <U> (): @[FlexibleNullability] U of <root>.E.bar? declared in <root>.E' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<U>: kotlin.Int
|
||||
<U>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'e: <root>.E declared in <root>.test' type=<root>.E origin=null
|
||||
CALL 'public open fun foo <U> (a: U of <root>.F.foo): kotlin.Unit declared in <root>.F' type=kotlin.Unit origin=null
|
||||
<U>: kotlin.Double
|
||||
|
||||
Vendored
+1
-1
@@ -86,7 +86,7 @@ fun test(a: A, b: B, c: C, d: D, e: E, f: F) {
|
||||
d.foo(t = 1.1)
|
||||
d.bar() /*~> Unit */
|
||||
e.foo<@FlexibleNullability Int?>(a = 1)
|
||||
e.bar<Int>() /*~> Unit */
|
||||
e.bar<@FlexibleNullability Int?>() /*~> Unit */
|
||||
f.foo<Double>(a = 2.2)
|
||||
f.bar<Double>() /*~> Unit */
|
||||
}
|
||||
|
||||
+13
-13
@@ -525,11 +525,11 @@ FILE fqName:<root> fileName:/1.kt
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
@@ -655,11 +655,11 @@ FILE fqName:<root> fileName:/1.kt
|
||||
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.F.foo?): kotlin.Unit declared in <root>.F' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.F.foo?): kotlin.Unit declared in <root>.F' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.F.foo?): kotlin.Unit declared in <root>.F' type=kotlin.Unit origin=null
|
||||
@@ -681,11 +681,11 @@ FILE fqName:<root> fileName:/1.kt
|
||||
$this: GET_VAR 'g: <root>.G declared in <root>.test' type=<root>.G origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.G.foo?): kotlin.Unit declared in <root>.G' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'g: <root>.G declared in <root>.test' type=<root>.G origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.G.foo?): kotlin.Unit declared in <root>.G' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'g: <root>.G declared in <root>.test' type=<root>.G origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.G.foo?): kotlin.Unit declared in <root>.G' type=kotlin.Unit origin=null
|
||||
@@ -707,11 +707,11 @@ FILE fqName:<root> fileName:/1.kt
|
||||
$this: GET_VAR 'h: <root>.H declared in <root>.test' type=<root>.H origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.H.foo?): kotlin.Unit declared in <root>.H' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'h: <root>.H declared in <root>.test' type=<root>.H origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.H.foo?): kotlin.Unit declared in <root>.H' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'h: <root>.H declared in <root>.test' type=<root>.H origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.H.foo?): kotlin.Unit declared in <root>.H' type=kotlin.Unit origin=null
|
||||
@@ -748,23 +748,23 @@ FILE fqName:<root> fileName:/1.kt
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k21 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.J.bar? declared in <root>.J' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'j: <root>.J declared in <root>.test' type=<root>.J origin=null
|
||||
VAR name:k22 type:kotlin.Any [val]
|
||||
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.J.bar? declared in <root>.J' type=@[FlexibleNullability] kotlin.Any? origin=null
|
||||
<T>: kotlin.Any
|
||||
<T>: @[FlexibleNullability] kotlin.Any?
|
||||
$this: GET_VAR 'j: <root>.J declared in <root>.test' type=<root>.J origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.J.foo?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'j: <root>.J declared in <root>.test' type=<root>.J origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.J.foo?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'j: <root>.J declared in <root>.test' type=<root>.J origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.J.foo?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'j: <root>.J declared in <root>.test' type=<root>.J origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.J.foo?): kotlin.Unit declared in <root>.J' type=kotlin.Unit origin=null
|
||||
@@ -779,5 +779,5 @@ FILE fqName:<root> fileName:/1.kt
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.L.bar? declared in <root>.L' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: kotlin.Int
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'l: <root>.L declared in <root>.test' type=<root>.L origin=null
|
||||
|
||||
+13
-13
@@ -155,8 +155,8 @@ fun test(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, l: L) {
|
||||
val k: Int = a.bar<Int>()
|
||||
val k3: Any = a.bar<Any>()
|
||||
a.foo<@FlexibleNullability Int?>(a = 1)
|
||||
a.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
a.foo<Int?>(a = null)
|
||||
a.foo<Nothing?>(a = null)
|
||||
a.foo<@FlexibleNullability Int?>(a = null)
|
||||
a.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k5: Int? = b.bar<Int?>()
|
||||
val k6: Any = b.bar<Any>()
|
||||
@@ -185,20 +185,20 @@ fun test(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, l: L) {
|
||||
val k13: Int? = f.bar<Int?>()
|
||||
val k14: Any = f.bar<Any>()
|
||||
f.foo<@FlexibleNullability Int?>(a = 1)
|
||||
f.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
f.foo<Int?>(a = null)
|
||||
f.foo<Nothing?>(a = null)
|
||||
f.foo<@FlexibleNullability Int?>(a = null)
|
||||
f.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k15: Int? = g.bar<Int?>()
|
||||
val k16: Any = g.bar<Any>()
|
||||
g.foo<@FlexibleNullability Int?>(a = 1)
|
||||
g.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
g.foo<Int?>(a = null)
|
||||
g.foo<Nothing?>(a = null)
|
||||
g.foo<@FlexibleNullability Int?>(a = null)
|
||||
g.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k17: Int? = h.bar<Int?>()
|
||||
val k18: Any = h.bar<Any>()
|
||||
h.foo<@FlexibleNullability Int?>(a = 1)
|
||||
h.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
h.foo<Int?>(a = null)
|
||||
h.foo<Nothing?>(a = null)
|
||||
h.foo<@FlexibleNullability Int?>(a = null)
|
||||
h.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k19: Int? = i.bar<Int?>()
|
||||
val k20: Any = i.bar<Any>()
|
||||
@@ -206,12 +206,12 @@ fun test(a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, l: L) {
|
||||
i.foo<Nothing?>(a = null)
|
||||
i.foo<Int?>(a = null)
|
||||
i.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k21: Int? = j.bar<Int?>()
|
||||
val k22: Any = j.bar<Any>() /*!! Any */
|
||||
val k21: Int? = j.bar<@FlexibleNullability Int?>()
|
||||
val k22: Any = j.bar<@FlexibleNullability Any?>() /*!! Any */
|
||||
j.foo<@FlexibleNullability Int?>(a = 1)
|
||||
j.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
j.foo<Int?>(a = null)
|
||||
j.foo<Nothing?>(a = null)
|
||||
j.foo<@FlexibleNullability Int?>(a = null)
|
||||
j.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
l.foo<Int>(a = 1)
|
||||
l.bar<Int>() /*~> Unit */
|
||||
l.bar<@FlexibleNullability Int?>() /*~> Unit */
|
||||
}
|
||||
|
||||
-252
@@ -1,252 +0,0 @@
|
||||
FILE fqName:<root> fileName:/1.kt
|
||||
CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[<root>.Java2]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.A [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java2'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[<root>.Java2]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.Java1) returnType:@[FlexibleNullability] T of <root>.A.bar? [fake_override]
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java2.bar? declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.A.foo?) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java2.foo?): kotlin.Unit declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.A.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.A]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.A'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.A]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.B) returnType:T of <root>.B.bar
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.B.bar declared in <root>.B'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.B, a:T of <root>.B.foo) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.B.foo
|
||||
BLOCK_BODY
|
||||
CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.Java3]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java3'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.Java3]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.Java3) returnType:@[FlexibleNullability] T of <root>.C.bar? [fake_override]
|
||||
annotations:
|
||||
Override
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java3.bar? declared in <root>.Java3
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java3
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java3
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java3, a:@[FlexibleNullability] T of <root>.C.foo?) returnType:kotlin.Unit [fake_override]
|
||||
annotations:
|
||||
Override
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java3.foo?): kotlin.Unit declared in <root>.Java3
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java3
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.C.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java3
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java3
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java1]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.D
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.D [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.D) returnType:T of <root>.D.bar
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.D.bar declared in <root>.D'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.D, a:T of <root>.D.foo) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.D.foo
|
||||
BLOCK_BODY
|
||||
CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null
|
||||
message: GET_VAR 'a: T of <root>.D.foo declared in <root>.D.foo' type=T of <root>.D.foo origin=null
|
||||
FUN name:test visibility:public modality:FINAL <> (a:<root>.A, b:<root>.B, c:<root>.C, d:<root>.D) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:a index:0 type:<root>.A
|
||||
VALUE_PARAMETER name:b index:1 type:<root>.B
|
||||
VALUE_PARAMETER name:c index:2 type:<root>.C
|
||||
VALUE_PARAMETER name:d index:3 type:<root>.D
|
||||
BLOCK_BODY
|
||||
VAR name:k type:kotlin.Int [val]
|
||||
TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k3 type:kotlin.Any [val]
|
||||
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Any? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Any?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.collections.List<kotlin.Nothing?>?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k5 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar declared in <root>.B' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
VAR name:k6 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar declared in <root>.B' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k7 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.C.bar? declared in <root>.C' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
VAR name:k8 type:kotlin.Any [val]
|
||||
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.C.bar? declared in <root>.C' type=@[FlexibleNullability] kotlin.Any? origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.collections.List<kotlin.Nothing?>?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k9 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.D.bar declared in <root>.D' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
VAR name:k10 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.D.bar declared in <root>.D' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
-77
@@ -1,77 +0,0 @@
|
||||
abstract class A : Java2 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java2*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class B : A {
|
||||
constructor() /* primary */ {
|
||||
super/*A*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any?> foo(a: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class C : Java3 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java3*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class D : Java1 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any?> foo(a: T) {
|
||||
println(message = a)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun test(a: A, b: B, c: C, d: D) {
|
||||
val k: Int = a.bar<Int>() /*!! Int */
|
||||
val k3: Any = a.bar<@FlexibleNullability Any?>() /*!! Any */
|
||||
a.foo<@FlexibleNullability Int?>(a = 1)
|
||||
a.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
a.foo<Int?>(a = null)
|
||||
a.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k5: Int? = b.bar<Int?>()
|
||||
val k6: Any = b.bar<Any>()
|
||||
b.foo<Int>(a = 1)
|
||||
b.foo<Nothing?>(a = null)
|
||||
b.foo<Int?>(a = null)
|
||||
b.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k7: Int? = c.bar<Int?>()
|
||||
val k8: Any = c.bar<Any>() /*!! Any */
|
||||
c.foo<@FlexibleNullability Int?>(a = 1)
|
||||
c.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
c.foo<Int?>(a = null)
|
||||
c.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k9: Int? = d.bar<Int?>()
|
||||
val k10: Any = d.bar<Any>()
|
||||
d.foo<Int>(a = 1)
|
||||
d.foo<Nothing?>(a = null)
|
||||
d.foo<Int?>(a = null)
|
||||
d.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
-270
@@ -1,270 +0,0 @@
|
||||
FILE fqName:<root> fileName:/1.kt
|
||||
CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[<root>.Java2]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.A [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[<root>.Java2]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT <T> ($this:<root>.KotlinInterface) returnType:T of <root>.A.bar [fake_override]
|
||||
overridden:
|
||||
public abstract fun bar <T> (): T of <root>.Java2.bar declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:ABSTRACT <T> ($this:<root>.KotlinInterface, a:T of <root>.A.foo) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public abstract fun foo <T> (a: T of <root>.Java2.foo): kotlin.Unit declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.A.foo
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.A]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.A'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.A]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.A
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.B) returnType:T of <root>.B.bar
|
||||
overridden:
|
||||
public abstract fun bar <T> (): T of <root>.A.bar declared in <root>.A
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.B.bar declared in <root>.B'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.B, a:T of <root>.B.foo) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public abstract fun foo <T> (a: T of <root>.A.foo): kotlin.Unit declared in <root>.A
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.B.foo
|
||||
BLOCK_BODY
|
||||
CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.Java1]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.Java1) returnType:@[EnhancedNullability] T of <root>.C.bar [fake_override]
|
||||
annotations:
|
||||
Override
|
||||
overridden:
|
||||
public open fun bar <T> (): @[EnhancedNullability] T of <root>.Java1.bar declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[EnhancedNullability] T of <root>.C.foo) returnType:kotlin.Unit [fake_override]
|
||||
annotations:
|
||||
Override
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[EnhancedNullability] T of <root>.Java1.foo): kotlin.Unit declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[EnhancedNullability] T of <root>.C.foo
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java1]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.D
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.D [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java1]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.D) returnType:T of <root>.D.bar
|
||||
overridden:
|
||||
public open fun bar <T> (): @[EnhancedNullability] T of <root>.Java1.bar declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.D.bar declared in <root>.D'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.D, a:T of <root>.D.foo) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[EnhancedNullability] T of <root>.Java1.foo): kotlin.Unit declared in <root>.Java1
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.D.foo
|
||||
BLOCK_BODY
|
||||
CLASS INTERFACE name:KotlinInterface modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.KotlinInterface
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:ABSTRACT <T> ($this:<root>.KotlinInterface) returnType:T of <root>.KotlinInterface.bar
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
FUN name:foo visibility:public modality:ABSTRACT <T> ($this:<root>.KotlinInterface, a:T of <root>.KotlinInterface.foo) returnType:kotlin.Unit
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.KotlinInterface.foo
|
||||
FUN name:test visibility:public modality:FINAL <> (a:<root>.A, b:<root>.B, c:<root>.C, d:<root>.D) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:a index:0 type:<root>.A
|
||||
VALUE_PARAMETER name:b index:1 type:<root>.B
|
||||
VALUE_PARAMETER name:c index:2 type:<root>.C
|
||||
VALUE_PARAMETER name:d index:3 type:<root>.D
|
||||
BLOCK_BODY
|
||||
VAR name:k type:kotlin.Int [val]
|
||||
CALL 'public abstract fun bar <T> (): T of <root>.A.bar declared in <root>.A' type=kotlin.Int origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k3 type:kotlin.Any [val]
|
||||
CALL 'public abstract fun bar <T> (): T of <root>.A.bar declared in <root>.A' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
CALL 'public abstract fun foo <T> (a: T of <root>.A.foo): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public abstract fun foo <T> (a: T of <root>.A.foo): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public abstract fun foo <T> (a: T of <root>.A.foo): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public abstract fun foo <T> (a: T of <root>.A.foo): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k5 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar declared in <root>.B' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
VAR name:k6 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar declared in <root>.B' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k7 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): @[EnhancedNullability] T of <root>.C.bar declared in <root>.C' type=@[EnhancedNullability] kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
VAR name:k8 type:kotlin.Any [val]
|
||||
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
|
||||
CALL 'public open fun bar <T> (): @[EnhancedNullability] T of <root>.C.bar declared in <root>.C' type=@[EnhancedNullability] kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
CALL 'public open fun foo <T> (a: @[EnhancedNullability] T of <root>.C.foo): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[EnhancedNullability] T of <root>.C.foo): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[EnhancedNullability] T of <root>.C.foo): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[EnhancedNullability] T of <root>.C.foo): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k9 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.D.bar declared in <root>.D' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
VAR name:k10 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.D.bar declared in <root>.D' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
-83
@@ -1,83 +0,0 @@
|
||||
abstract class A : Java2 {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class B : A {
|
||||
constructor() /* primary */ {
|
||||
super/*A*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any?> foo(a: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class C : Java1 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class D : Java1 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any?> foo(a: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface KotlinInterface {
|
||||
abstract fun <T : Any?> bar(): T
|
||||
|
||||
abstract fun <T : Any?> foo(a: T)
|
||||
|
||||
}
|
||||
|
||||
fun test(a: A, b: B, c: C, d: D) {
|
||||
val k: Int = a.bar<Int>()
|
||||
val k3: Any = a.bar<Any>()
|
||||
a.foo<Int>(a = 1)
|
||||
a.foo<Nothing?>(a = null)
|
||||
a.foo<Int?>(a = null)
|
||||
a.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k5: Int? = b.bar<Int?>()
|
||||
val k6: Any = b.bar<Any>()
|
||||
b.foo<Int>(a = 1)
|
||||
b.foo<Nothing?>(a = null)
|
||||
b.foo<Int?>(a = null)
|
||||
b.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k7: Int? = c.bar<Int?>()
|
||||
val k8: Any = c.bar<Any>() /*!! Any */
|
||||
c.foo<Int>(a = 1)
|
||||
c.foo<Nothing?>(a = null)
|
||||
c.foo<Int?>(a = null)
|
||||
c.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k9: Int? = d.bar<Int?>()
|
||||
val k10: Any = d.bar<Any>()
|
||||
d.foo<Int>(a = 1)
|
||||
d.foo<Nothing?>(a = null)
|
||||
d.foo<Int?>(a = null)
|
||||
d.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
Vendored
-399
@@ -1,399 +0,0 @@
|
||||
FILE fqName:<root> fileName:/1.kt
|
||||
CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.A [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.Java1) returnType:@[FlexibleNullability] T of <root>.A.bar? [fake_override]
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
public abstract fun bar <T> (): @[FlexibleNullability] T of <root>.Java2.bar? declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.A.foo?) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
public abstract fun foo <T> (a: @[FlexibleNullability] T of <root>.Java2.foo?): kotlin.Unit declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.A.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
public open fun toString (): kotlin.String declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.B
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.B [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
public open fun toString (): kotlin.String declared in <root>.Java2
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.B) returnType:T of <root>.B.bar
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
public abstract fun bar <T> (): @[FlexibleNullability] T of <root>.Java2.bar? declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.B.bar declared in <root>.B'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.B, a:T of <root>.B.foo) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
public abstract fun foo <T> (a: @[FlexibleNullability] T of <root>.Java2.foo?): kotlin.Unit declared in <root>.Java2
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.B.foo
|
||||
BLOCK_BODY
|
||||
CLASS CLASS name:C modality:ABSTRACT visibility:public superTypes:[<root>.Java1; <root>.KotlinInterface]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:ABSTRACT visibility:public superTypes:[<root>.Java1; <root>.KotlinInterface]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.KotlinInterface) returnType:T of <root>.C.bar [fake_override]
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
public abstract fun bar <T> (): T of <root>.KotlinInterface.bar declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.C.foo?) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
public abstract fun foo <T> (a: T of <root>.KotlinInterface.foo): kotlin.Unit declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.C.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
public open fun toString (): kotlin.String declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.KotlinInterface]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.D
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.D [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.KotlinInterface]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
public open fun toString (): kotlin.String declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.D) returnType:T of <root>.D.bar
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
public abstract fun bar <T> (): T of <root>.KotlinInterface.bar declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.D.bar declared in <root>.D'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
FUN name:foo visibility:public modality:OPEN <T> ($this:<root>.D, a:T of <root>.D.foo) returnType:kotlin.Unit
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
public abstract fun foo <T> (a: T of <root>.KotlinInterface.foo): kotlin.Unit declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.D
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.D.foo
|
||||
BLOCK_BODY
|
||||
CLASS CLASS name:E modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2; <root>.KotlinInterface]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.E
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.E [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:E modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2; <root>.KotlinInterface]'
|
||||
FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <T> ($this:<root>.KotlinInterface) returnType:T of <root>.E.bar [fake_override]
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
public abstract fun bar <T> (): @[FlexibleNullability] T of <root>.Java2.bar? declared in <root>.Java2
|
||||
public abstract fun bar <T> (): T of <root>.KotlinInterface.bar declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java2
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.E.foo?) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
public abstract fun foo <T> (a: @[FlexibleNullability] T of <root>.Java2.foo?): kotlin.Unit declared in <root>.Java2
|
||||
public abstract fun foo <T> (a: T of <root>.KotlinInterface.foo): kotlin.Unit declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.E.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java2
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
public open fun toString (): kotlin.String declared in <root>.Java2
|
||||
public open fun toString (): kotlin.String declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS CLASS name:F modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2; <root>.KotlinInterface]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.F
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.F [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.Java1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:F modality:FINAL visibility:public superTypes:[<root>.Java1; <root>.Java2; <root>.KotlinInterface]'
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java1
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Java2
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <T> ($this:<root>.Java1, a:@[FlexibleNullability] T of <root>.F.foo?) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
public open fun foo <T> (a: @[FlexibleNullability] T of <root>.Java1.foo?): kotlin.Unit declared in <root>.Java1
|
||||
public abstract fun foo <T> (a: @[FlexibleNullability] T of <root>.Java2.foo?): kotlin.Unit declared in <root>.Java2
|
||||
public abstract fun foo <T> (a: T of <root>.KotlinInterface.foo): kotlin.Unit declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.Java1
|
||||
VALUE_PARAMETER name:a index:0 type:@[FlexibleNullability] T of <root>.F.foo?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java1
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.Java2
|
||||
public open fun hashCode (): kotlin.Int declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in <root>.Java1
|
||||
public open fun toString (): kotlin.String declared in <root>.Java2
|
||||
public open fun toString (): kotlin.String declared in <root>.KotlinInterface
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:OPEN <T> ($this:<root>.F) returnType:T of <root>.F.bar
|
||||
overridden:
|
||||
public open fun bar <T> (): @[FlexibleNullability] T of <root>.Java1.bar? declared in <root>.Java1
|
||||
public abstract fun bar <T> (): @[FlexibleNullability] T of <root>.Java2.bar? declared in <root>.Java2
|
||||
public abstract fun bar <T> (): T of <root>.KotlinInterface.bar declared in <root>.KotlinInterface
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.F
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public open fun bar <T> (): T of <root>.F.bar declared in <root>.F'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.Nothing origin=EXCLEXCL
|
||||
<T0>: kotlin.Nothing
|
||||
arg0: CONST Null type=kotlin.Nothing? value=null
|
||||
CLASS INTERFACE name:KotlinInterface modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.KotlinInterface
|
||||
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||
overridden:
|
||||
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
FUN name:bar visibility:public modality:ABSTRACT <T> ($this:<root>.KotlinInterface) returnType:T of <root>.KotlinInterface.bar
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
FUN name:foo visibility:public modality:ABSTRACT <T> ($this:<root>.KotlinInterface, a:T of <root>.KotlinInterface.foo) returnType:kotlin.Unit
|
||||
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.KotlinInterface
|
||||
VALUE_PARAMETER name:a index:0 type:T of <root>.KotlinInterface.foo
|
||||
FUN name:test visibility:public modality:FINAL <> (a:<root>.A, b:<root>.B, c:<root>.C, d:<root>.D, e:<root>.E, f:<root>.F) returnType:kotlin.Unit
|
||||
VALUE_PARAMETER name:a index:0 type:<root>.A
|
||||
VALUE_PARAMETER name:b index:1 type:<root>.B
|
||||
VALUE_PARAMETER name:c index:2 type:<root>.C
|
||||
VALUE_PARAMETER name:d index:3 type:<root>.D
|
||||
VALUE_PARAMETER name:e index:4 type:<root>.E
|
||||
VALUE_PARAMETER name:f index:5 type:<root>.F
|
||||
BLOCK_BODY
|
||||
VAR name:k type:kotlin.Int [val]
|
||||
TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k3 type:kotlin.Any [val]
|
||||
TYPE_OP type=kotlin.Any origin=IMPLICIT_NOTNULL typeOperand=kotlin.Any
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Any? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Any?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
VAR name:k4 type:kotlin.Nothing [val]
|
||||
TYPE_OP type=kotlin.Nothing origin=IMPLICIT_NOTNULL typeOperand=kotlin.Nothing
|
||||
CALL 'public open fun bar <T> (): @[FlexibleNullability] T of <root>.A.bar? declared in <root>.A' type=@[FlexibleNullability] kotlin.Nothing? origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.A.foo?): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.collections.List<kotlin.Nothing?>?
|
||||
$this: GET_VAR 'a: <root>.A declared in <root>.test' type=<root>.A origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k5 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar declared in <root>.B' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
VAR name:k6 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.B.bar declared in <root>.B' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.B.foo): kotlin.Unit declared in <root>.B' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'b: <root>.B declared in <root>.test' type=<root>.B origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k7 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.C.bar declared in <root>.C' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
VAR name:k8 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.C.bar declared in <root>.C' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.C.foo?): kotlin.Unit declared in <root>.C' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.collections.List<kotlin.Nothing?>?
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k9 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.D.bar declared in <root>.D' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
VAR name:k10 type:kotlin.Any [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.D.bar declared in <root>.D' type=kotlin.Any origin=null
|
||||
<T>: kotlin.Any
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
CALL 'public open fun foo <T> (a: T of <root>.D.foo): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
<T>: kotlin.collections.List<kotlin.Nothing?>
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
a: CALL 'public final fun listOf <T> (element: T of kotlin.collections.listOf): kotlin.collections.List<T of kotlin.collections.listOf> declared in kotlin.collections' type=kotlin.collections.List<kotlin.Nothing?> origin=null
|
||||
<T>: kotlin.Nothing?
|
||||
element: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k11 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.E.bar declared in <root>.E' type=kotlin.Int? origin=null
|
||||
<T>: kotlin.Int?
|
||||
$this: GET_VAR 'e: <root>.E declared in <root>.test' type=<root>.E origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.E.foo?): kotlin.Unit declared in <root>.E' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'e: <root>.E declared in <root>.test' type=<root>.E origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.E.foo?): kotlin.Unit declared in <root>.E' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Nothing?
|
||||
$this: GET_VAR 'e: <root>.E declared in <root>.test' type=<root>.E origin=null
|
||||
a: CONST Null type=kotlin.Nothing? value=null
|
||||
VAR name:k12 type:kotlin.Any? [val]
|
||||
CALL 'public open fun bar <T> (): T of <root>.F.bar declared in <root>.F' type=kotlin.Any? origin=null
|
||||
<T>: kotlin.Any?
|
||||
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|
||||
CALL 'public open fun foo <T> (a: @[FlexibleNullability] T of <root>.F.foo?): kotlin.Unit declared in <root>.F' type=kotlin.Unit origin=null
|
||||
<T>: @[FlexibleNullability] kotlin.Int?
|
||||
$this: GET_VAR 'f: <root>.F declared in <root>.test' type=<root>.F origin=null
|
||||
a: CONST Int type=kotlin.Int value=1
|
||||
Vendored
-111
@@ -1,111 +0,0 @@
|
||||
class A : Java1, Java2 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class B : Java1, Java2 {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any?> foo(a: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
abstract class C : Java1, KotlinInterface {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class D : Java1, KotlinInterface {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
override fun <T : Any?> foo(a: T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class E : Java1, Java2, KotlinInterface {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class F : Java1, Java2, KotlinInterface {
|
||||
constructor() /* primary */ {
|
||||
super/*Java1*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
override fun <T : Any?> bar(): T {
|
||||
return CHECK_NOT_NULL<Nothing>(arg0 = null)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
interface KotlinInterface {
|
||||
abstract fun <T : Any?> bar(): T
|
||||
|
||||
abstract fun <T : Any?> foo(a: T)
|
||||
|
||||
}
|
||||
|
||||
fun test(a: A, b: B, c: C, d: D, e: E, f: F) {
|
||||
val k: Int = a.bar<Int?>() /*!! Int */
|
||||
val k3: Any = a.bar<@FlexibleNullability Any?>() /*!! Any */
|
||||
val k4: Nothing = a.bar<@FlexibleNullability Nothing?>() /*!! Nothing */
|
||||
a.foo<@FlexibleNullability Int?>(a = 1)
|
||||
a.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
a.foo<Int?>(a = null)
|
||||
a.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k5: Int? = b.bar<Int?>()
|
||||
val k6: Any = b.bar<Any>()
|
||||
b.foo<Int>(a = 1)
|
||||
b.foo<Nothing?>(a = null)
|
||||
b.foo<Int?>(a = null)
|
||||
b.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k7: Int? = c.bar<Int?>()
|
||||
val k8: Any = c.bar<Any>()
|
||||
c.foo<@FlexibleNullability Int?>(a = 1)
|
||||
c.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
c.foo<Int?>(a = null)
|
||||
c.foo<@FlexibleNullability List<Nothing?>?>(a = listOf<Nothing?>(element = null))
|
||||
val k9: Int? = d.bar<Int?>()
|
||||
val k10: Any = d.bar<Any>()
|
||||
d.foo<Int>(a = 1)
|
||||
d.foo<Nothing?>(a = null)
|
||||
d.foo<Int?>(a = null)
|
||||
d.foo<List<Nothing?>>(a = listOf<Nothing?>(element = null))
|
||||
val k11: Int? = e.bar<Int?>()
|
||||
e.foo<@FlexibleNullability Int?>(a = 1)
|
||||
e.foo<@FlexibleNullability Nothing?>(a = null)
|
||||
val k12: Any? = f.bar<Any?>()
|
||||
f.foo<@FlexibleNullability Int?>(a = 1)
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user