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
52 lines
817 B
Kotlin
Vendored
52 lines
817 B
Kotlin
Vendored
//FILE:a.kt
|
|
package a
|
|
|
|
class A {
|
|
companion object {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
|
|
private class B {
|
|
companion object {
|
|
fun bar() {}
|
|
}
|
|
}
|
|
|
|
class C {
|
|
private companion object {
|
|
fun baz() {}
|
|
}
|
|
}
|
|
|
|
private class D {
|
|
private companion object {
|
|
fun quux() {}
|
|
}
|
|
}
|
|
|
|
//FILE:b.kt
|
|
package b
|
|
|
|
import a.A
|
|
import a.<!INVISIBLE_REFERENCE!>B<!>
|
|
import a.C
|
|
import a.<!INVISIBLE_REFERENCE!>D<!>
|
|
|
|
fun test() {
|
|
f(A)
|
|
f(<!INVISIBLE_MEMBER!>B<!>)
|
|
f(<!INVISIBLE_MEMBER!>C<!>)
|
|
f(<!INVISIBLE_MEMBER!>D<!>)
|
|
|
|
A.foo()
|
|
<!INVISIBLE_REFERENCE!>B<!>.<!INVISIBLE_MEMBER!>bar<!>()
|
|
C.<!INVISIBLE_MEMBER!>baz<!>()
|
|
<!INVISIBLE_REFERENCE!>D<!>.<!INVISIBLE_MEMBER!>quux<!>()
|
|
|
|
a.A.foo()
|
|
a.C.<!INVISIBLE_MEMBER!>baz<!>()
|
|
}
|
|
|
|
fun f(<!UNUSED_PARAMETER!>unused<!>: Any) {}
|