ludic/examples/rejected/permap_ref_int.ludic
Orkuncakilkaya 5a751434ac tests: the map-scoped tables' example and rejected fixtures
examples/lang/permap (two maps, a chunked table with a negative, a positive and a
missing chunk, constants and fn by name, a nested list, a cross-row @Ref, a reload
shrinking in place, a bad file's file:line:col; built under arena strict with an @On
frame root), --check fixtures for a wrong field, a wrong type, an unknown constant and
a dangling cross-row @Ref, @Ref(PerMap) on an int, as PREFIX, and a @Unit warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:03:56 +03:00

12 lines
411 B
Text

# permap_ref_int.ludic - an @Ref into a @PerMap registry names a row by its key: a map's rows have
# no index a program could hold, so the field is a string
program PerMapRefInt {
property Spot { key: string = "" }
@PerMap registry Spots of Spot from "spots.lres"
property Npc {
key: string = ""
@Ref(Spots) home: int = 0
}
@PerMap registry Npcs of Npc from "npcs.lres"
entry { print(1) }
}