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

Grammar: infix operation should be allowed in else statement #78

Closed
vgramer opened this issue Dec 31, 2020 · 0 comments · Fixed by #80
Closed

Grammar: infix operation should be allowed in else statement #78

vgramer opened this issue Dec 31, 2020 · 0 comments · Fixed by #80
Assignees
Labels
bug Something isn't working

Comments

@vgramer
Copy link
Member

vgramer commented Dec 31, 2020

Actual Behavior

Infix operation is not allowed in the else statement

floor(x) = round(x) {
	round(x) == x
} else = ceil(x) - 1 {
	true
}

source: anderseknert/opal/blob/master/lib/math.rego

parsing is failing with message <ref arg> or '{' expected, got '-'

Expected Behavior

it should pass

How To Reproduce

open file in idea

Environment

  • OS: all

  • OPA version: all

  • IDE full name and version: all
  • plugin version: all

Additional context

@vgramer vgramer added the bug Something isn't working label Dec 31, 2020
@vgramer vgramer changed the title Grammar: infix operation should be allow in else statement Grammar: infix operation should be allowed in else statement Dec 31, 2020
@vgramer vgramer self-assigned this Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant