[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE
|
||||
|
||||
fun test(x: Int?) {
|
||||
val a1 = x as? Int
|
||||
val a2 = x as? Int?
|
||||
val a3 = x as? Number
|
||||
val a4 = x as? Number?
|
||||
val a5: Int? = x as? Int
|
||||
val a6: Number? = x as? Int
|
||||
val a7: Number? = 1 as? Number
|
||||
|
||||
run { x as? Int }
|
||||
run { x as? Number }
|
||||
|
||||
foo(x as? Number)
|
||||
|
||||
if (x is Int) {
|
||||
val b = x as? Int
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(x: Number?) {}
|
||||
Reference in New Issue
Block a user