Skip to content

Teach typechecker that uint is <plusable>. #88

Closed
@froystig

Description

@froystig

At the moment,

fn main() {
  let uint i = uint(1);
  i += uint(1);
}

fails to compile, giving the error:

uintplus.rs:3:2 - 4:0:E:Error: mismatched types: uint vs. <plusable>

Fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions