5cb949ad7f
In 1.3, due to changes in language, testdata for some tests can be different from 1.2 We want to simlultaneously test both versions, so instead of fixing language version in such tests, we split them into two: one with fixed 1.2, another with fixed 1.3
15 lines
439 B
Kotlin
Vendored
15 lines
439 B
Kotlin
Vendored
// !LANGUAGE: +ProhibitVisibilityOfNestedClassifiersFromSupertypesOfCompanion
|
|
// see https://youtrack.jetbrains.com/issue/KT-21515
|
|
|
|
abstract class <!CYCLIC_SCOPES_WITH_COMPANION!>DerivedAbstract<!> : C.Base() {
|
|
open class Data
|
|
}
|
|
|
|
public class C {
|
|
|
|
open class <!CYCLIC_SCOPES_WITH_COMPANION!>Base<!> ()
|
|
|
|
class Foo : <!UNRESOLVED_REFERENCE!>Data<!>()
|
|
|
|
companion <!CYCLIC_SCOPES_WITH_COMPANION!>object<!> : DerivedAbstract()
|
|
} |