-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
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"
epatters
Metadata
Metadata
Assignees
Labels
No labels