Add some test cases after review
This commit is contained in:
+13
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user