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
23 lines
435 B
Kotlin
Vendored
23 lines
435 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
class Point() {
|
|
}
|
|
|
|
class G<T>() {}
|
|
|
|
fun <T> f(<!UNUSED_PARAMETER!>expression<!> : T) : G<out T> = G<T>()
|
|
|
|
|
|
fun foo() : G<Point> {
|
|
val p = Point()
|
|
return <!TYPE_MISMATCH{NI}, TYPE_MISMATCH!>f<Point>(p)<!>
|
|
}
|
|
|
|
class Out<out T>() {}
|
|
|
|
fun <T> fout(<!UNUSED_PARAMETER!>expression<!> : T) : Out<<!REDUNDANT_PROJECTION!>out<!> T> = Out<T>()
|
|
|
|
fun fooout() : Out<Point> {
|
|
val p = Point();
|
|
return fout<Point>(p);
|
|
}
|