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