9037975758
The base class in scripting considered obsolete and therefore supported via some ad-hoc mechanisms. In particular parameters to the base class c-tor are passed via script provided properties. But in combination with the resolution logic, this leads to issues described in KT-60452 This commits filters out such parameters from script resolution scope and avoids this problem for now. Bot it should be noted that proper diagnostics for properties shadowing should still be implemented - see #KT-65809 #KT-60452 fixed
101 lines
4.1 KiB
Plaintext
Vendored
101 lines
4.1 KiB
Plaintext
Vendored
Tower Data Context:
|
|
Element 0
|
|
Scope: FirDefaultStarImportingScope
|
|
Element 1
|
|
Scope: FirExplicitStarImportingScope
|
|
Element 2
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 3
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 4
|
|
Scope: FirPackageMemberScope
|
|
Element 5
|
|
Scope: FirExplicitSimpleImportingScope
|
|
Element 6
|
|
Scope: FirScriptDeclarationsScope
|
|
Classifiers:
|
|
FirRegularClassSymbol public final? class After_OtherClass : R|kotlin/Any|
|
|
FirRegularClassSymbol public final? class Before_OtherClass : R|kotlin/Any|
|
|
FirRegularClassSymbol public final class MyClass : R|kotlin/Any|
|
|
Functions
|
|
FirNamedFunctionSymbol public? final? fun after_Fun(): R|kotlin/Unit|
|
|
FirNamedFunctionSymbol public? final? fun before_Fun(): R|kotlin/Unit|
|
|
Properties:
|
|
FirPropertySymbol public? final? val after_Val: <implicit>
|
|
public? get(): <implicit>
|
|
FirPropertySymbol public? final? val before_Val: <implicit>
|
|
public? get(): <implicit>
|
|
Element 7
|
|
Scope: FirLocalScope
|
|
Classifiers:
|
|
FirRegularClassSymbol public final class MyClass : R|kotlin/Any|
|
|
Element 8
|
|
Context receivers:
|
|
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: <script-insideClassMember.kts>
|
|
lval args: R|kotlin/Array<kotlin/String>|
|
|
|
|
public? final? fun before_Fun(): R|kotlin/Unit|
|
|
public? final? val before_Val: <implicit>
|
|
public? get(): <implicit>
|
|
|
|
public final? class Before_OtherClass : R|kotlin/Any|
|
|
public final class MyClass : R|kotlin/Any|
|
|
public? final? fun after_Fun(): R|kotlin/Unit|
|
|
public? final? val after_Val: <implicit>
|
|
public? get(): <implicit>
|
|
|
|
public final? class After_OtherClass : R|kotlin/Any|
|
|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
|
|
Label: <script>
|
|
Element 9
|
|
Implicit receiver:
|
|
FirRegularClassSymbol public final class MyClass : R|kotlin/Any|
|
|
Type: MyClass
|
|
Element 10
|
|
Scope: FirLocalScope
|
|
Element 11
|
|
Scope: FirLocalScope
|
|
|
|
FILE: [ResolvedTo(IMPORTS)] insideClassMember.kts
|
|
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: [ResolvedTo(TYPES)] <script-insideClassMember.kts>
|
|
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] fun before_Fun(): R|kotlin/Unit| { LAZY_BLOCK }
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] val before_Val: <implicit> = LAZY_EXPRESSION
|
|
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
|
|
|
|
public final? [ResolvedTo(RAW_FIR)] class Before_OtherClass : R|kotlin/Any| {
|
|
public? [ResolvedTo(RAW_FIR)] constructor(): R|Before_OtherClass| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
}
|
|
|
|
public final [ResolvedTo(STATUS)] class MyClass : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] constructor(): R|MyClass| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val foo: R|kotlin/Int| = Int(10)
|
|
public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): R|kotlin/Int|
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] fun usage(): R|kotlin/Unit| {
|
|
this@R|/MyClass|.R|/MyClass.foo|
|
|
}
|
|
|
|
}
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] fun after_Fun(): R|kotlin/Unit| { LAZY_BLOCK }
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] val after_Val: <implicit> = LAZY_EXPRESSION
|
|
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
|
|
|
|
public final? [ResolvedTo(RAW_FIR)] class After_OtherClass : R|kotlin/Any| {
|
|
public? [ResolvedTo(RAW_FIR)] constructor(): R|After_OtherClass| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
} |