[NI] Update test data for diagnostic tests

This commit is contained in:
Mikhail Zarechenskiy
2019-04-25 02:27:16 +03:00
parent ff0993153c
commit 1e3db9ee7c
93 changed files with 208 additions and 226 deletions
@@ -12,12 +12,12 @@ fun <T> emptyList() : List<T>? = ArrayList<T>()
fun foo() {
// type arguments shouldn't be required
val <!UNUSED_VARIABLE!>l<!> : List<Int> = emptyList()!!
<!NI;UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>l1<!> =<!> <!OI;TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>emptyList<!>()!!
val <!UNUSED_VARIABLE!>l1<!> = <!NI;NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, OI;TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>emptyList<!>()<!NI;NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>!!<!>
<!NI;UNREACHABLE_CODE!>checkSubtype<List<Int>>(emptyList()!!)<!>
<!NI;UNREACHABLE_CODE!>checkSubtype<List<Int>?>(emptyList())<!>
checkSubtype<List<Int>>(emptyList()!!)
checkSubtype<List<Int>?>(emptyList())
<!NI;UNREACHABLE_CODE!>doWithList(emptyList()!!)<!>
doWithList(emptyList()!!)
}
fun doWithList(list: List<Int>) = list