diff --git a/.travis.yml b/.travis.yml index a14a749..e319062 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,5 @@ matrix: - julia: nightly notifications: email: false +script: + - julia -e 'using Pkg; Pkg.build(); Pkg.test(; coverage=false);' diff --git a/src/SimpleTraits.jl b/src/SimpleTraits.jl index c591cbe..d209960 100644 --- a/src/SimpleTraits.jl +++ b/src/SimpleTraits.jl @@ -530,7 +530,7 @@ into problems, see source code. Also the macro is ugly. PRs welcome... """ macro check_fast_traitdispatch(Tr, Arg=:Int, verbose=false) if Base.JLOptions().code_coverage==1 - warn("The SimpleTraits.@check_fast_traitdispatch macro only works when running Julia without --code-coverage") + @warn "The SimpleTraits.@check_fast_traitdispatch macro only works when running Julia without --code-coverage" return nothing end test_fn = gensym() diff --git a/src/base-traits.jl b/src/base-traits.jl index eadb96b..3b601c8 100644 --- a/src/base-traits.jl +++ b/src/base-traits.jl @@ -69,11 +69,7 @@ https://github.com/mauro3/SimpleTraits.jl/issues/40. """ @traitdef IsIterator{X} @generated function SimpleTraits.trait(::Type{IsIterator{X}}) where {X} - if VERSION:Int, :IsIterator=>:(Dict{Int,Int})] for (bt, tp) in basetrs - bt==:IsIterator && VERSION