• 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

New Missed Lines in Diff

Lines Coverage ∆ File
3
80.23
-0.04% base/compiler/inferencestate.jl

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.3
-0.68% base/char.jl
1
85.98
-0.37% base/compiler/utilities.jl
1
94.71
-0.15% base/range.jl
1
87.72
0.0% base/show.jl
1
93.94
-3.03% base/strings/lazy.jl
1
85.37
2.64% base/task.jl
1
91.42
-0.43% stdlib/Random/src/generation.jl
2
93.81
-0.22% base/array.jl
2
80.23
-0.04% base/compiler/inferencestate.jl
2
96.25
-0.68% base/reduce.jl
2
61.07
-0.76% stdlib/Artifacts/src/Artifacts.jl
2
37.54
-0.66% stdlib/Distributed/src/managers.jl
5
92.6
-1.06% base/intfuncs.jl
5
65.71
-14.29% base/ordering.jl
6
84.35
-5.22% stdlib/Base64/src/encode.jl
13
50.98
-8.5% base/ryu/utils.jl
19
46.42
1.55% base/util.jl
21
56.1
-10.24% base/path.jl
23
83.12
-0.7% base/compiler/typeinfer.jl
23
60.4
-15.44% base/ryu/fixed.jl
27
65.51
-4.11% base/sort.jl
29
72.15
-13.24% base/parse.jl
34
87.03
0.0% base/reflection.jl
39
89.11
0.68% stdlib/REPL/src/REPLCompletions.jl
87
72.74
-15.4% base/gmp.jl
128
79.49
-12.99% stdlib/Serialization/src/Serialization.jl
271
33.98
-43.85% stdlib/Printf/src/Printf.jl
Jobs
ID Job ID Ran Files Coverage
1 #37633.1 27 Sep 2023 01:16PM UTC 345
86.73
Source Files on build #37633
  • Tree
  • List 345
  • Changed 287
  • Source Changed 0
  • Coverage Changed 52
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • 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

© 2025 Coveralls, Inc