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
22 lines
450 B
Kotlin
Vendored
22 lines
450 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !CHECK_TYPE
|
|
// FILE: Test.java
|
|
public class Test {
|
|
public <T> T with(Foo<T> matcher) {
|
|
return null;
|
|
}
|
|
public boolean with(Foo<Boolean> matcher) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
class Foo<T>
|
|
fun main(foo1: Foo<Boolean>, foo2: Foo<String>) {
|
|
val x = object : Test() {} // FE exception is thrown here
|
|
|
|
x.with(foo1) checkType { _<Boolean>() }
|
|
x.with(foo2) checkType { _<String>() }
|
|
}
|
|
|