JuliaArrays / ArrayViews.jl

A Julia package to explore a new system of array views
MIT License
19 stars 18 forks source link

method ambiguity on julia 0.6.0 #55

Closed goretkin closed 7 years ago

goretkin commented 7 years ago

On julia 0.5.2

const Subs = Union{Real,Colon,Range}
contrank(i1::Colon, i2::Colon, i3::Union{Colon,UnitRange}) = "3d"
contrank(i1::Colon, i2::Colon, i3::Colon, I::Subs...) = "nd"

contrank(:, :, :)

produces "nd"

on julia 0.6.0 there's a method ambiguity error (which seems more correct than chosing the nd method, but also the first method I think is strictly more specific.)