wiz-lang / wiz

A high-level assembly language for writing homebrew software and games on retro console platforms.
http://wiz-lang.org/
Other
409 stars 40 forks source link

Function parameters have different types outside their declaring function. #111

Open Bananattack opened 3 years ago

Bananattack commented 3 years ago

Ran into an issue where the following wouldn't work:

func foo(dest : *u8 in de) { ... }

foo.dest = &array[0];
foo(foo.dest);

because Wiz was reporting dest as a u16 (the type of dest's designated storage) rather than *u8, the element type given to dest itself.

Investigate what is causing this to happen.