Closed ajkeller34 closed 7 years ago
I'm a little surprised that this method is necessary. We should run the ambiguity detection tool, I guess...
We should run the ambiguity detection tool
There is some example code in ImageTransformations that Prof Holy implemented here, that could be useful as template.
# ...
refambs = detect_ambiguities(CoordinateTransformations, Base, Core)
using ImageTransformations
ambs = detect_ambiguities(ImageTransformations, CoordinateTransformations, Base, Core)
@test isempty(setdiff(ambs, refambs))
# ...
Bugger
julia> Base.Test.detect_ambiguities(StaticArrays, Base, Core)
Skipping Base.<|
ERROR: TypeError: apply_type: in Vararg count, expected Int64, got Type{Any}
Stacktrace:
[1] #isambiguous#23(::Bool, ::Function, ::Method, ::Method) at ./reflection.jl:972
[2] (::Base.#kw##isambiguous)(::Array{Any,1}, ::Base.#isambiguous, ::Method, ::Method) at ./<missing>:0
[3] #detect_ambiguities#20(::Bool, ::Bool, ::Void, ::Function, ::Module, ::Vararg{Module,N} where N) at ./test.jl:1158
[4] detect_ambiguities(::Module, ::Vararg{Module,N} where N) at ./test.jl:1133
On Julia version 0.6.0-pre.beta.293 (2017-04-23 19:58 UTC), and master of StaticArrays:
This works fine on Julia 0.5.1 and StaticArrays 0.3.1.