diff --git a/tests/error/misc_errors/unsupported_const.err b/tests/error/misc_errors/unsupported_const.err index baf3536d..20810ec4 100644 --- a/tests/error/misc_errors/unsupported_const.err +++ b/tests/error/misc_errors/unsupported_const.err @@ -1,8 +1,8 @@ -Error: Unsupported constant (at $FILE:7:8) +Error: Unsupported constant (at $FILE:6:9) | -5 | @compile_guppy -6 | def foo() -> None: -7 | x = "foo" - | ^^^^^ Type `str` is not supported +4 | @compile_guppy +5 | def foo() -> None: +6 | x = -2j + | ^^ Type `complex` is not supported Guppy compilation failed due to 1 previous error diff --git a/tests/error/misc_errors/unsupported_const.py b/tests/error/misc_errors/unsupported_const.py index 1959d05b..928f4948 100644 --- a/tests/error/misc_errors/unsupported_const.py +++ b/tests/error/misc_errors/unsupported_const.py @@ -1,7 +1,6 @@ -from guppylang.std.builtins import array from tests.util import compile_guppy @compile_guppy def foo() -> None: - x = "foo" + x = -2j