[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo(x: Number, y: Int) {
|
||||
when (x) {
|
||||
is Int -> checkSubtype<Int>(x)
|
||||
y -> {}
|
||||
else -> {}
|
||||
}
|
||||
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><Int>(x)
|
||||
}
|
||||
|
||||
fun bar(x: Number) {
|
||||
when (x) {
|
||||
is Int -> checkSubtype<Int>(x)
|
||||
else -> {}
|
||||
}
|
||||
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><Int>(x)
|
||||
}
|
||||
|
||||
fun whenWithoutSubject(x: Number) {
|
||||
when {
|
||||
(x is Int) -> checkSubtype<Int>(x)
|
||||
else -> {}
|
||||
}
|
||||
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><Int>(x)
|
||||
}
|
||||
Reference in New Issue
Block a user