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 <T : Any?> foo(x: T) {
if (x is String<!USELESS_NULLABLE_CHECK!>?<!>) {
x<!UNSAFE_CALL!>.<!>length()
if (x != null) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length()
}
}
if (x is String) {
<!DEBUG_INFO_SMARTCAST!>x<!>.length()
}
}