[NI] Record all diagnostics from subcalls resolution results

This commit is contained in:
Mikhail Zarechenskiy
2018-02-14 05:42:14 +03:00
parent 6a7a07bf9d
commit 3afd4a2f4a
9 changed files with 26 additions and 20 deletions
@@ -6,6 +6,6 @@ fun foo() {
val x: Int? = null
bar(1 + (if (x == null) 0 else x))
bar(<!NI;TYPE_MISMATCH!>if (x == null) <!TYPE_MISMATCH, DEBUG_INFO_CONSTANT!>x<!> else x<!>)
bar(<!NI;TYPE_MISMATCH!>if (x == null) <!NI;TYPE_MISMATCH, DEBUG_INFO_CONSTANT, TYPE_MISMATCH!>x<!> else x<!>)
if (x != null) bar(x + x/(x-x*x))
}