diff --git a/test/test_compiler.pr b/test/test_compiler.pr index c21133e..92fc8db 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 {