Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promotion ambiguity error #21

Open
Tokazama opened this issue Apr 11, 2020 · 0 comments
Open

Promotion ambiguity error #21

Tokazama opened this issue Apr 11, 2020 · 0 comments

Comments

@Tokazama
Copy link
Owner

ERROR: MethodError: promote_rule(::Type{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}}, ::Type{UnitMRange{Int64}}) is ambiguous. Candidates:
  promote_rule(a::Type{StepRangeLen{T,R,S}}, ::Type{OR}) where {T, R, S, OR<:AbstractRange} in Base at range.jl:915
  promote_rule(a::Type{#s38} where #s38<:StepRangeLen, b::Type{#s37} where #s37<:UnitMRange) in StaticRanges at /Users/zchristensen/Box/Zachs_Lab_Notebook/StaticRanges.jl/src/promotion.jl:116
Possible fix, define
  promote_rule(::Type{StepRangeLen{T,R,S}}, ::Type{OR}) where {T, R, S, OR<:UnitMRange}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Tokazama and others