1bbcae5ed2
We cannot call lazy resolve to STATUS phase from scopes as scopes may be accessed on a STATUS phase or earlier ^KT-54890 ^KTIJ-23587 fixed
52 lines
865 B
Kotlin
Vendored
52 lines
865 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
interface I
|
|
|
|
open class S(
|
|
n: A.Nested,
|
|
n2: A.Nested,
|
|
inn: A.Inner,
|
|
c: Int,
|
|
cc: Int,
|
|
cn: Int,
|
|
ci: Int,
|
|
t1: Int,
|
|
t2: Int
|
|
) : I
|
|
|
|
class A : I by S(
|
|
foo(),
|
|
Nested(),
|
|
<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
|
CONST,
|
|
Companion.CONST,
|
|
Nested.CONST,
|
|
Interface.CONST,
|
|
<!UNRESOLVED_REFERENCE!>a<!>,
|
|
<!UNRESOLVED_REFERENCE!>b<!>()
|
|
) {
|
|
|
|
class Nested {
|
|
companion object {
|
|
const val CONST = 2
|
|
}
|
|
}
|
|
|
|
inner class Inner
|
|
|
|
interface Interface {
|
|
companion object {
|
|
const val CONST = 3
|
|
}
|
|
}
|
|
|
|
val a = 1
|
|
fun b() = 2
|
|
|
|
companion object {
|
|
const val CONST = 1
|
|
fun foo(): Nested = null!!
|
|
}
|
|
}
|