mirror of
https://github.com/apple/pkl.git
synced 2026-09-13 21:31:52 +02:00
Fix variable resolution of object body params (#1788)
Fixes a regression introduced in Pkl 0.32.
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
foo = new Mapping {
|
||||
default { key ->
|
||||
for (idx, char in key.split("")) {
|
||||
["\(char)_\(idx)"] = "hi"
|
||||
}
|
||||
}
|
||||
["zzz"] {}
|
||||
}
|
||||
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
foo = new Mapping {
|
||||
default { key ->
|
||||
when (key is String) {
|
||||
bar = key
|
||||
}
|
||||
}
|
||||
["x"] {}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
foo {
|
||||
["zzz"] {
|
||||
["z_0"] = "hi"
|
||||
["z_1"] = "hi"
|
||||
["z_2"] = "hi"
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
foo {
|
||||
["x"] {
|
||||
bar = "x"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user