Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Cannot use math expressions inside of resize expressions #41

Open
lefticus opened this issue Mar 9, 2024 · 0 comments
Open

Cannot use math expressions inside of resize expressions #41

lefticus opened this issue Mar 9, 2024 · 0 comments

Comments

@lefticus
Copy link
Collaborator

lefticus commented Mar 9, 2024

let x = 10;
let y = 11;

mut data = raw[1]

unsafe {
  resize data x*y
}
───┬─ /home/jason/june/examples/june_hello_world/main/main.june:7:16
 6 │ unsafe {
 7 │   resize data x*y
   │                ╍ error: incomplete math expression
 8 │ }
───┴─
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant