Fix tests after a semantically conflicting merge of KT-50008 and KT-65596
This commit is contained in:
committed by
Space Team
parent
e56a4c6edb
commit
d897bfbcad
+4
-2
@@ -17,12 +17,14 @@ public class Test {}
|
||||
fun <T : Test> main(a1: NonPlatformTypeParameter<Any?>, a2: NonPlatformTypeParameter<Test>, x: T): Unit {
|
||||
a1.foo(null)
|
||||
a1.bar<Test?>(null)
|
||||
a1.bar<T>(null)
|
||||
// jspecify_nullness_mismatch
|
||||
a1.bar<T>(<!ARGUMENT_TYPE_MISMATCH!>null<!>)
|
||||
a1.bar<T>(x)
|
||||
|
||||
a2.foo(null)
|
||||
a2.bar<Test?>(null)
|
||||
a2.bar<T>(null)
|
||||
// jspecify_nullness_mismatch
|
||||
a2.bar<T>(<!ARGUMENT_TYPE_MISMATCH!>null<!>)
|
||||
a2.bar<T>(x)
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -18,13 +18,13 @@ fun <T : Test> main(a1: NonPlatformTypeParameter<Any?>, a2: NonPlatformTypeParam
|
||||
a1.foo(null)
|
||||
a1.bar<Test?>(null)
|
||||
// jspecify_nullness_mismatch
|
||||
a1.bar<T>(null)
|
||||
a1.bar<T>(<!ARGUMENT_TYPE_MISMATCH!>null<!>)
|
||||
a1.bar<T>(x)
|
||||
|
||||
// jspecify_nullness_mismatch
|
||||
a2.foo(null)
|
||||
a2.bar<Test?>(null)
|
||||
// jspecify_nullness_mismatch
|
||||
a2.bar<T>(null)
|
||||
a2.bar<T>(<!ARGUMENT_TYPE_MISMATCH!>null<!>)
|
||||
a2.bar<T>(x)
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -246,10 +246,10 @@ FILE fqName:<root> fileName:/1.kt
|
||||
$this: GET_VAR 'c: <root>.C declared in <root>.test' type=<root>.C origin=null
|
||||
s: CONST Int type=kotlin.Int value=1
|
||||
VAR name:k7 type:kotlin.Int? [val]
|
||||
GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] T of <root>.Java3? visibility:public' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] T of <root>.Java3? visibility:public' type=kotlin.Int? origin=null
|
||||
receiver: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
VAR name:k8 type:kotlin.Int? [val]
|
||||
CALL 'public open fun bar (): @[FlexibleNullability] kotlin.Int? declared in <root>.D' type=@[FlexibleNullability] kotlin.Int? origin=null
|
||||
CALL 'public open fun bar (): @[FlexibleNullability] kotlin.Int? declared in <root>.D' type=kotlin.Int? origin=null
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
CALL 'public open fun foo (s: @[FlexibleNullability] kotlin.Int?): kotlin.Unit declared in <root>.D' type=kotlin.Unit origin=null
|
||||
$this: GET_VAR 'd: <root>.D declared in <root>.test' type=<root>.D origin=null
|
||||
|
||||
Reference in New Issue
Block a user