Update tests after rebase

This commit is contained in:
Victor Petukhov
2021-05-28 11:31:52 +03:00
parent f4788b479c
commit 54b9f39b3a
55 changed files with 266 additions and 262 deletions
+5 -6
View File
@@ -1,4 +1,3 @@
// !WITH_NEW_INFERENCE
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
@@ -11,18 +10,18 @@
*/
fun test1(): Int {
val x: String = if (true) <!TYPE_MISMATCH{NI}!>{
val x: String = if (true) <!TYPE_MISMATCH!>{
when {
true -> <!TYPE_MISMATCH{OI}!>Any()<!>
else -> <!NULL_FOR_NONNULL_TYPE{OI}!>null<!>
true -> Any()
else -> null
}
}<!> else ""
return x.hashCode()
}
fun test2(): Int {
val x: String = <!TYPE_MISMATCH{NI}!>when {
true -> <!TYPE_MISMATCH{OI}!>Any()<!>
val x: String = <!TYPE_MISMATCH!>when {
true -> Any()
else -> null
} ?: return 0<!>
return x.hashCode()