TypeError in typeassert, expected

I suppose the first thing to do is to look at what methods exists?

julia> methods(Son)
# 1 method for type constructor:
 [1] Son(AbstractParentType, field1)

Argument names are usually printed in stack traces, and in print of method tables as above, I don’t know why they are not included in the “Closest candidates” output.

1 Like