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

no suitable resolution for prefix unary operator '+' on type 'int' #96

Open
yuanyelele opened this issue Aug 18, 2017 · 1 comment
Open

Comments

@yuanyelele
Copy link

<<< +1 >>>;

@lathertonj
Copy link
Contributor

I'm not certain, but since prefix unary + is a nop, this might be an instance where this is allowed through the syntax parser so we can give an error that's more specific than "syntax error", but then it wasn't allowed in the emitter because if a novice programmer typed a unary +, they probably meant to type something else.

@spencersalazar might know better whether it was intentional to leave unary + unimplemented in the emitter.

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