[LL FIR] add more tests for script initializer
^KT-65344
This commit is contained in:
committed by
Space Team
parent
08332fdc6e
commit
f972c8d239
+27
@@ -0,0 +1,27 @@
|
||||
KT element: KtCallExpression
|
||||
FIR element: FirFunctionCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
R|/foo|()
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] firstStatementCall.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)] <script-firstStatementCall.kts>
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun foo(): R|kotlin/Int| {
|
||||
^foo Int(4)
|
||||
}
|
||||
|
||||
[ResolvedTo(BODY_RESOLVE)] init {
|
||||
R|/foo|()
|
||||
}
|
||||
|
||||
[ResolvedTo(BODY_RESOLVE)] init {
|
||||
R|/bar|()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(CONTRACTS)] fun bar(): R|kotlin/Unit| {
|
||||
}
|
||||
Reference in New Issue
Block a user