Add tests for obsolete issues
#KT-32395 Obsolete (fixed in42a5c488) #KT-32388 Obsolete (fixed inf3e4c9cd) #KT-32271 Obsolete (fixed in60a0cf1)
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
fun test1(ns: String?, vararg nullableStrs: String?) {
|
||||
nullableStrs.contains("x")
|
||||
nullableStrs.contains(ns)
|
||||
"x" in nullableStrs
|
||||
ns in nullableStrs
|
||||
}
|
||||
|
||||
fun test2(ns: String?, vararg nonNullableStrs: String) {
|
||||
nonNullableStrs.contains("x")
|
||||
nonNullableStrs.contains(ns)
|
||||
"x" in nonNullableStrs
|
||||
ns in nonNullableStrs
|
||||
}
|
||||
|
||||
fun test3(ns: String?, nullableStrs: Array<out String?>, nonNullableStrs: Array<out String>) {
|
||||
nullableStrs.contains("x")
|
||||
nonNullableStrs.contains("x")
|
||||
|
||||
nullableStrs.contains(ns)
|
||||
nonNullableStrs.contains(ns)
|
||||
|
||||
"x" in nullableStrs
|
||||
"x" in nonNullableStrs
|
||||
ns in nullableStrs
|
||||
ns in nonNullableStrs
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package
|
||||
|
||||
public fun test1(/*0*/ ns: kotlin.String?, /*1*/ vararg nullableStrs: kotlin.String? /*kotlin.Array<out kotlin.String?>*/): kotlin.Unit
|
||||
public fun test2(/*0*/ ns: kotlin.String?, /*1*/ vararg nonNullableStrs: kotlin.String /*kotlin.Array<out kotlin.String>*/): kotlin.Unit
|
||||
public fun test3(/*0*/ ns: kotlin.String?, /*1*/ nullableStrs: kotlin.Array<out kotlin.String?>, /*2*/ nonNullableStrs: kotlin.Array<out kotlin.String>): kotlin.Unit
|
||||
Reference in New Issue
Block a user