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
613 B
Kotlin
Vendored
21 lines
613 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
package conflictingSubstitutions
|
|
//+JDK
|
|
|
|
import java.util.*
|
|
|
|
fun <R> elemAndList(r: R, <!UNUSED_PARAMETER!>t<!>: MutableList<R>): R = r
|
|
fun <R> R.elemAndListWithReceiver(r: R, <!UNUSED_PARAMETER!>t<!>: MutableList<R>): R = r
|
|
|
|
fun test() {
|
|
val <!UNUSED_VARIABLE!>s<!> = <!TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS{OI}!>elemAndList<!>(11, list("72"))
|
|
|
|
val <!UNUSED_VARIABLE!>u<!> = 11.<!TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS{OI}!>elemAndListWithReceiver<!>(4, list("7"))
|
|
}
|
|
|
|
fun <T> list(value: T) : ArrayList<T> {
|
|
val list = ArrayList<T>()
|
|
list.add(value)
|
|
return list
|
|
}
|