Skip to content

Prefix minus after operator throws compile error #54

@kwabenantim

Description

@kwabenantim

We get a compile error for expressions with a prefix minus that appears immediately after an operator.

For example:

a { 1.0 / -2.0 }

throws the error:

Compile Error
 --> 4:11 
| 
4 | a { 1.0 / -2.0 } 
| ^--- 
| = expected factor

The same error gets thrown in these cases too:

b { 1.0 * -2.0 }
c { 1.0 + -2.0 }
d { 1.0 - -2.0 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions