Skip to content

Commit

Permalink
Merge pull request #198 from JuliaComputing/jb/defaulttype
Browse files Browse the repository at this point in the history
fix #193; remove `_default_type`
  • Loading branch information
andreasnoack authored Nov 30, 2018
2 parents 635f8c8 + 3e78583 commit cf97826
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,12 @@ Base.@pure function strip_unionall(T)
end

Base.@pure function _promote_op(f, ::Type{S}) where S
t = Core.Compiler.return_type(f, Tuple{Base._default_type(S)})
t = Core.Compiler.return_type(f, Tuple{S})
strip_unionall(t)
end

Base.@pure function _promote_op(f, ::Type{S}, ::Type{T}) where {S,T}
t = Core.Compiler.return_type(f, Tuple{Base._default_type(S),
Base._default_type(T)})
t = Core.Compiler.return_type(f, Tuple{S, T})
strip_unionall(t)
end

Expand Down

0 comments on commit cf97826

Please sign in to comment.