Add some test cases after review

This commit is contained in:
Denis Zharkov
2015-08-27 17:45:02 +03:00
parent 00a78fce0c
commit 5e09a0c2c9
10 changed files with 182 additions and 11 deletions
@@ -0,0 +1,13 @@
fun <E : String?, T : ((CharSequence).() -> Unit)?> foo(x: E, y: T) {
if (x != null) {
<!DEBUG_INFO_SMARTCAST!>x<!>.<!UNSAFE_CALL!>y<!>()
}
if (y != null) {
x<!UNSAFE_CALL!>.<!><!DEBUG_INFO_SMARTCAST!>y<!>()
}
if (x != null && y != null) {
<!DEBUG_INFO_SMARTCAST!>x<!>.<!DEBUG_INFO_SMARTCAST!>y<!>()
}
}