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

Inferring array types #19

Open
SjorsVanGelderen opened this issue Aug 17, 2018 · 1 comment
Open

Inferring array types #19

SjorsVanGelderen opened this issue Aug 17, 2018 · 1 comment

Comments

@SjorsVanGelderen
Copy link

While using WebGL in Elm, I discovered the GLSL parser doesn't seem to infer types of arrays correctly.
For instance: uniform int array[32]; is inferred as having just the type Int.
I'm not sure about Haskell, but in Elm I expect this type to be inferred as Array Int.
Is this simply not supported, or is it a bug?

@schell
Copy link

schell commented Aug 17, 2018

My guess is it's a bug. The parser has a couple bugs in it. I've found that sometimes when parsing function parameters it will incorrectly parse function (int value) as function(in tvalue) or something like that.

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

2 participants