From 5827f72c1aca4573b3e88c685f8f0e689431a099 Mon Sep 17 00:00:00 2001 From: Vic Nightfall Date: Mon, 4 Mar 2024 19:07:39 +0100 Subject: [PATCH] Fix test case --- test/test_compiler.pr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_compiler.pr b/test/test_compiler.pr index c21133e1..92fc8db5 100644 --- a/test/test_compiler.pr +++ b/test/test_compiler.pr @@ -896,14 +896,14 @@ def #test test_array_inference { def #test test_array_inference_fail { let str = """ - let a: [?; float] = [1, 2, 3, 4] + let a: [?; int] = [1, 2.0, 3, 4] """ assert compile(str) == null assert env.err() == strip_margin(" - |main@2:13 - | let a: [?; float] = [1, 2, 3, 4] - | ^~~~~~~~~~~~~ - |Incompatible types [4; int] and [?; float]\n") + |main@2:31 + | let a: [?; int] = [1, 2.0, 3, 4] + | ^~~ + |Incompatible types, got double and expected int\n") } def #test test_array_size_and_value {