Open aplavin opened 5 months ago
Ah, I think this is because Point2 is also a subtype of StaticArray. We would probably need to define that dispatch in the macro which generates the point definitions.
In this case, the fix would be GB.Point{N}(::SArray{Tuple{N}, T, 1}) where N = ...
or so. I've abbreviated a bit but it should make sense anyway...
For example,
Point2(SVector(1, 2))
throws: