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
54 lines
2.5 KiB
Kotlin
Vendored
54 lines
2.5 KiB
Kotlin
Vendored
interface N { fun foo() = 1 }
|
|
|
|
class WithClassObject {
|
|
companion object {}
|
|
|
|
class Nested()
|
|
class NestedWithClassObject { companion object : N }
|
|
enum class NestedEnum { A }
|
|
object NestedObj : N { operator fun invoke() = 1 }
|
|
}
|
|
|
|
class WithoutClassObject {
|
|
class Nested()
|
|
class NestedWithClassObject { companion object : N }
|
|
enum class NestedEnum { A }
|
|
object NestedObj : N { operator fun invoke() = 1 }
|
|
}
|
|
|
|
object Obj {
|
|
class Nested()
|
|
class NestedWithClassObject { companion object : N }
|
|
enum class NestedEnum { A }
|
|
object NestedObj : N { operator fun invoke() = 1 }
|
|
}
|
|
|
|
fun test(with: WithClassObject, without: WithoutClassObject, obj: Obj) {
|
|
with.<!UNRESOLVED_REFERENCE!>Nested<!>()
|
|
with.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedWithClassObject<!>
|
|
with.<!UNRESOLVED_REFERENCE!>NestedWithClassObject<!>()
|
|
with.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedWithClassObject<!>.foo()
|
|
with.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedEnum<!>.A
|
|
with.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>NestedObj<!>
|
|
with.<!RESOLUTION_TO_CLASSIFIER!>NestedObj<!>()
|
|
with.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>NestedObj<!>.foo()
|
|
|
|
without.<!UNRESOLVED_REFERENCE!>Nested<!>()
|
|
without.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedWithClassObject<!>
|
|
without.<!UNRESOLVED_REFERENCE!>NestedWithClassObject<!>()
|
|
without.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedWithClassObject<!>.foo()
|
|
without.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedEnum<!>.A
|
|
without.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>NestedObj<!>
|
|
without.<!RESOLUTION_TO_CLASSIFIER!>NestedObj<!>()
|
|
without.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>NestedObj<!>.foo()
|
|
|
|
obj.<!UNRESOLVED_REFERENCE!>Nested<!>()
|
|
obj.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedWithClassObject<!>
|
|
obj.<!UNRESOLVED_REFERENCE!>NestedWithClassObject<!>()
|
|
obj.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedWithClassObject<!>.foo()
|
|
obj.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE, NO_COMPANION_OBJECT!>NestedEnum<!>.A
|
|
obj.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>NestedObj<!>
|
|
obj.<!RESOLUTION_TO_CLASSIFIER!>NestedObj<!>()
|
|
obj.<!NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE!>NestedObj<!>.foo()
|
|
}
|