File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,13 @@ function _hybrid(expr)
42
42
abstract_struct_name_mut = Symbol (abstract_struct_name, :_Mut )
43
43
abstract_struct_name_immut = Symbol (abstract_struct_name, :_Immut )
44
44
45
- abstract_struct_mut = abstract_type == :(Any) ? :(Any) : (:($ abstract_struct_name_mut{$ (abstract_type_params... )}))
46
- abstract_struct_immut = abstract_type == :(Any) ? :(Any) : (:($ abstract_struct_name_immut{$ (abstract_type_params... )}))
45
+ if abstract_type_params == []
46
+ abstract_struct_mut = abstract_type == :(Any) ? :(Any) : (:($ abstract_struct_name_mut))
47
+ abstract_struct_immut = abstract_type == :(Any) ? :(Any) : (:($ abstract_struct_name_immut))
48
+ else
49
+ abstract_struct_mut = abstract_type == :(Any) ? :(Any) : (:($ abstract_struct_name_mut{$ (abstract_type_params... )}))
50
+ abstract_struct_immut = abstract_type == :(Any) ? :(Any) : (:($ abstract_struct_name_immut{$ (abstract_type_params... )}))
51
+ end
47
52
48
53
struct_mut = :(mutable struct $ struct_name_mut{$ (type_params... )} <: $abstract_struct_mut
49
54
$ (expr. args[3 ]. args... )
You can’t perform that action at this time.
0 commit comments