Skip to content

Update syntax does not work with subtraction #460

@pschachte

Description

@pschachte

For example, the following do not compile:

!x - 1   # should decrement x
10 - !x  # should subtract x from 10

These elicit these compiler errors:

test-cases/final-dump/minus_update.wybe:4:2: Ambiguous overloading: call could refer to:
    wybe.int.-<3>
    wybe.int.-<0>
test-cases/final-dump/minus_update.wybe:5:1: Ambiguous overloading: call could refer to:
    wybe.int.-<3>
    wybe.int.-<0>

I suspect this is caused by some kind of conflict with unary subtraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions