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
39 lines
502 B
Kotlin
Vendored
39 lines
502 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: K.kt
|
|
|
|
open class K {
|
|
companion object {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
|
|
// FILE: D.java
|
|
|
|
class D extends K {
|
|
static int b = 1;
|
|
static void bar() {}
|
|
}
|
|
|
|
// FILE: K2.kt
|
|
|
|
class K2 {
|
|
companion object {
|
|
fun baz() {}
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun test() {
|
|
K.foo()
|
|
|
|
D.b
|
|
D.bar()
|
|
D.<!UNRESOLVED_REFERENCE!>foo<!>()
|
|
|
|
K2.<!UNRESOLVED_REFERENCE!>b<!>
|
|
K2.<!UNRESOLVED_REFERENCE!>bar<!>()
|
|
K2.<!UNRESOLVED_REFERENCE!>foo<!>()
|
|
K2.baz()
|
|
}
|