[FIR] Split primary constructor parameter scope into two different
In init block or property initializers, for `val x` declared in primary constructor, `x` reference is now resolved to property, not to parameter. So we need two different scopes for primary constructor, one for 'pure' parameters and another one for all parameters, including val/var ones. #KT-42844 Fixed
This commit is contained in:
Vendored
+5
-5
@@ -47,7 +47,7 @@ FILE: propertyTypeMismatchOnOverride.kt
|
||||
public final val value: R|T| = R|<local>/value|
|
||||
public get(): R|T|
|
||||
|
||||
public final override var test: R|T| = R|<local>/value|
|
||||
public final override var test: R|T| = this@R|/E|.R|/E.value|
|
||||
public get(): R|T|
|
||||
public set(value: R|T|): R|kotlin/Unit|
|
||||
|
||||
@@ -60,7 +60,7 @@ FILE: propertyTypeMismatchOnOverride.kt
|
||||
public final val value: R|T| = R|<local>/value|
|
||||
public get(): R|T|
|
||||
|
||||
public open var rest: R|T| = R|<local>/value|
|
||||
public open var rest: R|T| = this@R|/F|.R|/F.value|
|
||||
public get(): R|T|
|
||||
public set(value: R|T|): R|kotlin/Unit|
|
||||
|
||||
@@ -73,7 +73,7 @@ FILE: propertyTypeMismatchOnOverride.kt
|
||||
public final val balue: R|E| = R|<local>/balue|
|
||||
public get(): R|E|
|
||||
|
||||
public final override var rest: R|E| = R|<local>/balue|
|
||||
public final override var rest: R|E| = this@R|/G|.R|/G.balue|
|
||||
public get(): R|E|
|
||||
public set(value: R|E|): R|kotlin/Unit|
|
||||
|
||||
@@ -86,7 +86,7 @@ FILE: propertyTypeMismatchOnOverride.kt
|
||||
public final val balue: R|E| = R|<local>/balue|
|
||||
public get(): R|E|
|
||||
|
||||
public final override var rest: R|E| = R|<local>/balue|
|
||||
public final override var rest: R|E| = this@R|/H|.R|/H.balue|
|
||||
public get(): R|E|
|
||||
public set(value: R|E|): R|kotlin/Unit|
|
||||
|
||||
@@ -99,7 +99,7 @@ FILE: propertyTypeMismatchOnOverride.kt
|
||||
public final val balue: R|E| = R|<local>/balue|
|
||||
public get(): R|E|
|
||||
|
||||
public final override var rest: R|E| = R|<local>/balue|
|
||||
public final override var rest: R|E| = this@R|/M|.R|/M.balue|
|
||||
public get(): R|E|
|
||||
public set(value: R|E|): R|kotlin/Unit|
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ FILE: repeatedModifier.kt
|
||||
private final val int: R|kotlin/Int| = R|<local>/int|
|
||||
private get(): R|kotlin/Int|
|
||||
|
||||
protected final var double: R|kotlin/Double| = R|<local>/int|.R|kotlin/Int.plus|(Double(8.0))
|
||||
protected final var double: R|kotlin/Double| = this@R|/E|.R|/E.int|.R|kotlin/Int.plus|(Double(8.0))
|
||||
protected get(): R|kotlin/Double|
|
||||
protected set(value: R|kotlin/Double|): R|kotlin/Unit|
|
||||
|
||||
|
||||
Reference in New Issue
Block a user