Skip to content

Time.diff_us has infinite recursion caused by operator overloading #2124

Closed
@radekm

Description

@radekm

It seems that 0.7.1 added infinite recursion to Time.diff_us. It is defined as:

fn Duration Time.diff_us(time, Time other) @operator(-) => (Duration)(time - other);

I believe that it should be defined as:

fn Duration Time.diff_us(time, Time other) @operator(-) => (Duration)((long)time - (long)other);

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingFixed needs testingNeeds verification / testing that it now works

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions