Skip to content

Commit

Permalink
Add test for *array (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 23, 2023
1 parent 7c60f13 commit ca81368
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/wrong_type/deref_array.jou
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def foo() -> int:
x = [1, 2, 3]
return *x # Error: the dereference operator '*' is only for pointers, not for int[3]

0 comments on commit ca81368

Please sign in to comment.