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
26 lines
578 B
Kotlin
Vendored
26 lines
578 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
// !WITH_NEW_INFERENCE
|
|
// NI_EXPECTED_FILE
|
|
|
|
interface Base {
|
|
fun base() {}
|
|
}
|
|
interface Base2 : Base3
|
|
interface Base3
|
|
interface One : Base, Base2
|
|
interface Two : Base, Base2
|
|
interface Three : Base, Base3
|
|
|
|
object O1 : One
|
|
object O2 : Two
|
|
object O3 : Three
|
|
|
|
fun <S: Base> intersect(vararg elements: S): S = TODO()
|
|
fun <S> intersectNoBound(vararg elements: S): S = TODO()
|
|
|
|
fun some(a: One, b: Two, c: Three) = intersectNoBound(intersect(a, b), c)
|
|
|
|
fun test(arg: Base, arg2: Base) {
|
|
some(O1, O2, O3).<!UNRESOLVED_REFERENCE{NI}!>base<!>()
|
|
}
|