[FIR] Implement RESOLUTION_TO_CLASSIFIER
This commit is contained in:
@@ -4,7 +4,7 @@ class A(
|
||||
n: Nested = foo(),
|
||||
n2: Nested = Nested(),
|
||||
inn: Inner = null!!,
|
||||
inn2: Inner = Inner(),
|
||||
inn2: Inner = <!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
i: Interface = null!!,
|
||||
c: Int = CONST,
|
||||
cc: Int = Companion.CONST,
|
||||
@@ -19,7 +19,7 @@ class A(
|
||||
n: Nested = foo(),
|
||||
n2: Nested = Nested(),
|
||||
inn: Inner = null!!,
|
||||
inn2: Inner = Inner(),
|
||||
inn2: Inner = <!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
i: Interface = null!!,
|
||||
c: Int = CONST,
|
||||
cc: Int = Companion.CONST,
|
||||
@@ -31,7 +31,7 @@ class A(
|
||||
foo(),
|
||||
Nested(),
|
||||
inn,
|
||||
Inner(),
|
||||
<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
i,
|
||||
CONST,
|
||||
Companion.CONST,
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
// !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(),
|
||||
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!!
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface I
|
||||
|
||||
-48
@@ -1,48 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class S(
|
||||
n: A.Nested,
|
||||
n2: A.Nested,
|
||||
inn: A.Inner,
|
||||
c: Int,
|
||||
cc: Int,
|
||||
cn: Int,
|
||||
ci: Int,
|
||||
t1: Int,
|
||||
t2: Int
|
||||
)
|
||||
|
||||
class A : S (
|
||||
foo(),
|
||||
Nested(),
|
||||
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!!
|
||||
}
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class S(
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ class A : S {
|
||||
constructor() : super(
|
||||
foo(),
|
||||
Nested(),
|
||||
Inner(),
|
||||
<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
CONST,
|
||||
Companion.CONST,
|
||||
Nested.CONST,
|
||||
|
||||
Reference in New Issue
Block a user