diff --git a/tests/wrong_type/deref_array.jou b/tests/wrong_type/deref_array.jou new file mode 100644 index 00000000..545add13 --- /dev/null +++ b/tests/wrong_type/deref_array.jou @@ -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]