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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user