[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
fun foo(x: String) = x
|
||||
|
||||
fun test1() {
|
||||
var c: Any? = "XXX"
|
||||
if (c !is String) return
|
||||
|
||||
val newC: String? = "YYY"
|
||||
if (newC != null) {
|
||||
c = newC
|
||||
}
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(c)
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
var c: Any? = "XXX"
|
||||
if (c !is String) return
|
||||
|
||||
val newC: String? = "YYY"
|
||||
if (newC is String) {
|
||||
c = newC
|
||||
}
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(c)
|
||||
}
|
||||
|
||||
fun test3() {
|
||||
var c: Any? = "XXX"
|
||||
if (c !is String) return
|
||||
|
||||
val newC: String? = "YYY"
|
||||
if (newC == null) return
|
||||
c = newC
|
||||
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user