From dd03be5ff8f3c8bab84682e4128de123e8312fa4 Mon Sep 17 00:00:00 2001 From: Natalie Date: Wed, 24 Jun 2026 04:11:59 -0400 Subject: [PATCH] =?UTF-8?q?test(@projects/@magic-civilization):=20?= =?UTF-8?q?=F0=9F=90=9B=20pass=20typed=20Array[Dictionary]=20to=20EndGameS?= =?UTF-8?q?ummary.setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .../engine/tests/integration/test_end_game_footer_actions.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/engine/tests/integration/test_end_game_footer_actions.gd b/src/game/engine/tests/integration/test_end_game_footer_actions.gd index f717af0d..d1d79bef 100644 --- a/src/game/engine/tests/integration/test_end_game_footer_actions.gd +++ b/src/game/engine/tests/integration/test_end_game_footer_actions.gd @@ -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