Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bananattack opened this issue Feb 7, 2021 · 0 comments

Comments

@Bananattack
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant