Skip to content

Commit 8a4f3b1

Browse files
authored
Make dispatching on TypeParameter more flexible (#162)
1 parent c197b7c commit 8a4f3b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/maintypes.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Represents numeric parameters of a manifold type as type parameters, allowing fo
4444
specialization of methods.
4545
"""
4646
struct TypeParameter{T} end
47-
TypeParameter(t::NTuple) = TypeParameter{t}()
47+
TypeParameter(t::NTuple) = TypeParameter{Tuple{t...}}()
4848

49-
get_parameter(::TypeParameter{T}) where {T} = T
49+
get_parameter(::TypeParameter{T}) where {T} = tuple(T.parameters...)
5050
get_parameter(P) = P
5151

5252
"""

0 commit comments

Comments
 (0)