diff --git a/src/ConstructionBase.jl b/src/ConstructionBase.jl index 4c4871a..63c4d75 100644 --- a/src/ConstructionBase.jl +++ b/src/ConstructionBase.jl @@ -26,7 +26,7 @@ for (name, path) in [ end end -@generated function constructorof(::Type{T}) where T +function constructorof(::Type{T}) where T getfield(parentmodule(T), nameof(T)) end