[FIR] Fix unexpected primary constructor scope in secondary constructor
^KTIJ-23720 ^KT-56353 Fixed
This commit is contained in:
committed by
Space Team
parent
c25a5bc9c1
commit
7db32f6430
+11
@@ -0,0 +1,11 @@
|
||||
FILE: primaryConstructorParametersInSecondaryConstructor.kt
|
||||
public final class A : R|kotlin/Any| {
|
||||
public constructor(x: R|kotlin/Int|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public constructor(y: R|kotlin/String|, z: R|kotlin/Int| = <Unresolved name: x>#): R|A| {
|
||||
this<R|A|>(R|<local>/z|)
|
||||
}
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class A(x: Int) {
|
||||
constructor(y: String, z: Int = <!UNRESOLVED_REFERENCE!>x<!>): this(z)
|
||||
}
|
||||
Reference in New Issue
Block a user