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

Parsing bug: dereference parses as multiplication #14

Open
lmwnshn opened this issue Apr 30, 2019 · 0 comments
Open

Parsing bug: dereference parses as multiplication #14

lmwnshn opened this issue Apr 30, 2019 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@lmwnshn
Copy link
Contributor

lmwnshn commented Apr 30, 2019

Doesn't happen for deref.tpl, haven't tested fully what the failure conditions are.

struct S {
  a: int
}

fun main() -> int {
  var q : S
  var b = &q.a
  *b = 30  // ERROR: Line: 8, Col: 4 => expecting expression
  return *b
}
@lmwnshn lmwnshn added bug Something isn't working good first issue Good for newcomers labels Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant