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

Generic type inference fails for arrays #100

Closed
masonwheeler opened this issue Jan 20, 2015 · 0 comments
Closed

Generic type inference fails for arrays #100

masonwheeler opened this issue Jan 20, 2015 · 0 comments

Comments

@masonwheeler
Copy link
Contributor

def Test():
   arr as (int)
   Array.Resize(arr, 5)

Expected: Type inference detects that we're dealing with an array of ints here
Observed: Type inference fails, and requires the last line to be stated as Array.Resize[of int](arr, 5)

masonwheeler added a commit that referenced this issue Oct 29, 2018
Generic type inference will now work correctly for ref arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant