Skip to content

Wrong result for enum #56

@bliang26

Description

@bliang26

Hi, I am getting a wrong result when I try to match an enum. Please see the following example. Is there any work around? Thanks.

julia> @enum Fruit begin
       orange
       apple
       end

julia> fruit = orange
orange::Fruit = 0

julia> @match fruit begin
       apple  => "apple"
       orange => "orange"
       end
"apple"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions