test(@projects/@magic-civilization): 🐛 pass typed Array[Dictionary] to EndGameSummary.setup
setup(winner, reason, awards: Array[Dictionary]) rejected the untyped [] literal
("does not have the same element type as expected typed array"). Pass a typed
empty array.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3652d0fcda
commit
dd03be5ff8
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ func before_each() -> void:
|
|||
add_child_autofree(_egs)
|
||||
await get_tree().process_frame
|
||||
## Bring it into the populated/visible state the footer handlers expect.
|
||||
_egs.setup(0, "LastSurvivor", [])
|
||||
## setup() binds awards as Array[Dictionary]; an untyped [] is rejected.
|
||||
var no_awards: Array[Dictionary] = []
|
||||
_egs.setup(0, "LastSurvivor", no_awards)
|
||||
await get_tree().process_frame
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue