[LL FIR] support parameters resolution

Script parameters now can be resolved independently of the script.
But, as parameters are part of the script, their resolve will be called
before the script.

^KT-66276 Fixed
This commit is contained in:
Dmitrii Gridin
2024-03-01 19:01:39 +01:00
committed by Space Team
parent 150af66b55
commit d5cfea330b
569 changed files with 1816 additions and 1964 deletions
@@ -1,4 +1,3 @@
// SCRIPT_PROVIDED_PROPERTIES: prop1: kotlin.String, prop2: java.io.File
// MUTE_LL_FIR: KT-66276
val rv = args[1] + prop1 + prop2.path
@@ -1,5 +1,4 @@
// SCRIPT_PROVIDED_PROPERTIES: prop1: kotlin.String
// MUTE_LL_FIR: KT-66276
val prop1 = 42 // TODO: Error should be reported on this shadowing, see KT-65809