Skip to content

Commit

Permalink
Change unsupported constant example
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana-s committed Dec 23, 2024
1 parent 996f9ea commit b809414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tests/error/misc_errors/unsupported_const.err
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions tests/error/misc_errors/unsupported_const.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b809414

Please sign in to comment.