Add test for outdated smart cast with elvis issue

#KT-5335 Obsolete
This commit is contained in:
Alexander Udalov
2014-10-16 16:35:11 +04:00
parent 6387076efe
commit 6698e0ecc9
6 changed files with 24 additions and 5 deletions
@@ -0,0 +1,11 @@
class C {
fun foo() {}
}
fun test(a: C?, nn: () -> Nothing?) {
a ?: nn()
a<!UNSAFE_CALL!>.<!>foo()
a ?: return
<!DEBUG_INFO_SMARTCAST!>a<!>.foo()
}