Skip to content

Commit

Permalink
Mention how to get the basetype of an enum (#36057)
Browse files Browse the repository at this point in the history
* Mention how to get the basetype of an enum
Fix #28778

* Mention Integer() instead of internal method
  • Loading branch information
ViralBShah authored May 29, 2020
1 parent 3c63934 commit 38a373a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/Enums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ end
`BaseType`, which defaults to [`Int32`](@ref), must be a primitive subtype of `Integer`.
Member values can be converted between the enum type and `BaseType`. `read` and `write`
perform these conversions automatically.
perform these conversions automatically. In case the enum is created with a non-default
`BaseType`, `Integer(value1)` will return the integer `value1` with the type `BaseType`.
To list all the instances of an enum use `instances`, e.g.
Expand Down

2 comments on commit 38a373a

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your package evaluation job has completed - possible new issues were detected. A full report can be found here. cc @maleadt

Please sign in to comment.