• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37633
77%

Build:
DEFAULT BRANCH: master
Ran 27 Sep 2023 01:16PM UTC
Jobs 1
Files 345
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Sep 2023 01:16PM UTC coverage: 86.73% (-0.3%) from 86.999%
#37633

push

local

web-flow
inference: restrict type of type parameter from `Vararg` (#51449)

Inference has been able to restrict type of `Vararg` type parameter `N`
to `Int` for cases like `func(..., ::Vararg{T,N}) where {T,N}`, but this
refinement was not available for signatures like
`func(::Tuple{Vararg{T,N}}) where {T,N}`.

This commit allows the later case to be inferred as well. Now the
following kind of case will be inferred, e.g.:
```julia
julia> function sub2ind_gen_fallback(dims::NTuple{N,Int}, I) where N # N is knonw to be ::Int
           ind = I[N] - 1
           for i = (N - 1):-1:1
               ind = I[i] - 1 + dims[i]*ind
           end
           return ind + 1
       end;

julia> only(Base.return_types(sub2ind_gen_fallback, (NTuple,Tuple{Vararg{Int}})))
Int64
```

14 of 14 new or added lines in 1 file covered. (100.0%)

73055 of 84233 relevant lines covered (86.73%)

12199722.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #37633.1 27 Sep 2023 01:16PM UTC 0
86.73
Source Files on build #37633
Detailed source file information is not available for this build.
  • Back to Repo
  • 8de80bdf on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc