Reputation: 14551
There is maintype(t) = getfield(parentmodule(t), nameof(t))
, but it's rather indirect...
Does anyone know a better way?
Upvotes: 1
Views: 59
Reputation: 14551
The solution is to use Base.typename(t).wrapper
given t
is the same t
you referenced in your question!
Upvotes: 1