e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
30 lines
511 B
Kotlin
Vendored
30 lines
511 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class A {
|
|
fun f(x: Boolean): Int = 0
|
|
|
|
fun f(y: String): Int = 0
|
|
}
|
|
|
|
class B {
|
|
private var a: A? = null
|
|
|
|
fun takeInt(i: Int) {}
|
|
|
|
fun f() {
|
|
a = A()
|
|
<!SMARTCAST_IMPOSSIBLE!>a<!>.f(true)
|
|
takeInt(<!SMARTCAST_IMPOSSIBLE!>a<!>.f(""))
|
|
a.<!NONE_APPLICABLE!>f<!>()
|
|
}
|
|
|
|
fun g() {
|
|
takeInt(if (3 > 2) {
|
|
a = A()
|
|
<!SMARTCAST_IMPOSSIBLE!>a<!>.f(true)
|
|
} else {
|
|
6
|
|
})
|
|
}
|
|
}
|