[NI] Refine nullability for CST of types with undefined nullability

This commit is contained in:
Mikhail Zarechenskiy
2017-12-01 18:11:09 +03:00
parent b9d390449c
commit 1d736f59b6
10 changed files with 28 additions and 25 deletions
@@ -1,5 +1,4 @@
// !DIAGNOSTICS: -NOTHING_TO_INLINE
// NI_EXPECTED_FILE
// See KT-9143: smart cast on a variable nulled inside a lambda argument
inline fun <T> foo(t1: T, t2: T) = t1 ?: t2