is_subtype multimethod

Methods

is_subtype(t:Type, maybe_supertype:Type)experimental Source: stdlib.ngs:1006
Check whether t is a subtype of maybe_supertype. Note that if t and maybe_supertype are same type, this method also returns true. TODO: consider symbol <: as method name.

Returns

Bool

Example

Lines.is_subtype(Eachable1)  # true
Eachable.is_subtype(Lines)  # false