Add tests for obsolete issues

#KT-32395 Obsolete (fixed in 42a5c488)
 #KT-32388 Obsolete (fixed in f3e4c9cd)
 #KT-32271 Obsolete (fixed in 60a0cf1)
This commit is contained in:
Mikhail Zarechenskiy
2019-07-03 14:27:18 +03:00
parent 675f01ee80
commit 6eefea6715
11 changed files with 169 additions and 0 deletions
@@ -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
}
@@ -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