Skip to content

Enum binary ops sometimes fail to generate warnings #542

Description

@bvdberg

Also need to determine exact desired behaviour ..

type Enum enum u8 {
    A, B, C
}

public fn i32 main() {
    Enum e = B;
    e <<= 9;    // should give an error
    return 0;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions