5,337
edits
No edit summary |
No edit summary |
||
Line 140: | Line 140: | ||
# Get the super type | # Get the super type | ||
supertype(Int64) | supertype(Int64) | ||
# Check if a is a subtype of b with <: | |||
# This is the same symbol for creating a subtype | |||
# E.g. mutable struct myNum <: Number | |||
Int64 <: Number | |||
</pre> | </pre> | ||