Skip to content

Support arithmetic operations between new types and underlying types #4

Description

@umut-sahin

Would be cool to be able to do:

#[derive(Synonym)]
pub struct MyInt(i32);

let x = MyInt(10);
let y = x + 1; // y: MyInt

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