This code throws:
bar = new {}
foo {
for (i in List(1)) {
...(bar) {
baz {
new { i }
}
}.baz
}
}
This also throws (logically the same code):
bar = new {}
foo {
for (i in List(1)) {
for (elem in (bar) {
baz {
new { i }
}
}.baz) {
elem
}
}
}
Throws:
–– Pkl Error ––
Cannot find property `i`.
7 | new { i }
^
This code throws:
This also throws (logically the same code):
Throws: