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
21 lines
501 B
Kotlin
Vendored
21 lines
501 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
// !WITH_NEW_INFERENCE
|
|
|
|
interface A<T> {
|
|
fun foo(x: T)
|
|
fun foo(x: String)
|
|
|
|
fun <E> baz(x: E, y: String)
|
|
fun <E> baz(x: String, y: E)
|
|
}
|
|
|
|
fun <E> baz(x: E, y: String) {}
|
|
fun <E> baz(x: String, y: E) {}
|
|
|
|
fun bar(x: A<String>) {
|
|
x.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>("")
|
|
|
|
x.<!CANNOT_COMPLETE_RESOLVE{OI}, OVERLOAD_RESOLUTION_AMBIGUITY{NI}!>baz<!>("", "")
|
|
<!CANNOT_COMPLETE_RESOLVE{OI}, OVERLOAD_RESOLUTION_AMBIGUITY{NI}!>baz<!>("", "")
|
|
}
|