Skip to content

Commit

Permalink
add deprecation for Union()
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Sep 17, 2015
1 parent 06e6b37 commit 64d0cc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ end

@deprecate cartesianmap(f, dims) for idx in CartesianRange(dims); f(idx.I...); end

@deprecate Union(args...) Union{args...}

# 0.5 deprecations

# 12839
Expand Down
2 changes: 0 additions & 2 deletions base/essentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ typealias Callable Union{Function,DataType}

const Bottom = Union{}

call(::Type{Union}, args...) = Union{args...}

# The real @inline macro is not available until after array.jl, so this
# internal macro splices the meta Expr directly into the function body.
macro _inline_meta()
Expand Down
2 changes: 1 addition & 1 deletion base/require.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ end

# remote/parallel load

function source_path(default::Union(AbstractString,Void)="")
function source_path(default::Union{AbstractString,Void}="")
t = current_task()
while true
s = t.storage
Expand Down

0 comments on commit 64d0cc9

Please sign in to comment.