Skip to content

Commit

Permalink
aa
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 19, 2023
1 parent d0c138d commit c65c64a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/wrong_type/pointer_to_int.jou
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def foo() -> None:
# Pointers (64-bit) do not fit in int (32-bit), so compiler errors
x = 1
y = &x as int # Error: cannot cast from type int* to int

0 comments on commit c65c64a

Please sign in to comment.