Skip to content

Commit 0d59341

Browse files
authored
Merge pull request #483 from JuliaRobotics/dep/2Q20/prodsym
Update Deprecated.jl * Symbol
2 parents 307a65b + dc93b7a commit 0d59341

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Deprecated.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
## Remove in 0.9
88
##==============================================================================
99

10+
import Base: *
11+
12+
# FIXME remove! is it really needed? This is type piracy
13+
function *(a::Symbol, b::AbstractString)
14+
@warn "product * on ::Symbol ::String has been deprecated, please use Symbol(string(a,b)) directly"
15+
Symbol(string(a,b))
16+
end
17+
1018
setTimestamp!(f::FactorDataLevel1, ts::DateTime) = error("setTimestamp!(f::FactorDataLevel1, ts::DateTime) is deprecated")
1119

1220
include("../attic/GraphsDFG/GraphsDFG.jl")

0 commit comments

Comments
 (0)