Skip to content

Commit 11a7a91

Browse files
committed
avoid method redefinition
1 parent b5d14a7 commit 11a7a91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spaces/cartesianspace.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ vector space that is implicitly assumed in most of matrix algebra.
1111
"""
1212
struct CartesianSpace <: ElementarySpace
1313
d::Int
14+
15+
# required to avoid CartesianSpace(::Any) default constructor:
16+
CartesianSpace(d::Int) = new(d)
1417
end
1518

1619
CartesianSpace(d::Integer = 0; dual = false) = CartesianSpace(Int(d))

0 commit comments

Comments
 (0)