File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ _getname(t::T) where T = T.name.name
5
5
6
6
7
7
convertPackedType (t:: Union{T, Type{T}} ) where {T <: FunctorInferenceType } = getfield (_getmodule (t), Symbol (" Packed$(_getname (t)) " ))
8
- convertStructType (:: Type{PT} ) where {PT <: PackedInferenceType } = getfield (PT. name. module, Symbol (string (PT. name. name)[7 : end ]))
9
-
8
+ function convertStructType (:: Type{PT} ) where {PT <: PackedInferenceType }
9
+ # see #668 for expanded reasoning. PT may be ::UnionAll if the type is of template type.
10
+ ptt = PT isa DataType ? PT. name. name : PT
11
+ moduleName = PT isa DataType ? PT. name. module : Main
12
+ symbolName = Symbol (string (ptt)[7 : end ])
13
+ getfield (moduleName, symbolName)
14
+ end
10
15
11
16
# #==============================================================================
12
17
# # Sorting
You can’t perform that action at this time.
0 commit comments