Commit aa9bec7
authored
Helps type inference.
Before:
```julia-repl
julia> using Test, JET, Polynomials
julia> p = ImmutablePolynomial{Bool, :x, 1}((true,))
ImmutablePolynomial(true)
julia> @inferred coeffs(p)
ERROR: return type Tuple{Bool} does not match inferred return type Any
```
After:
```julia-repl
julia> using Test, JET, Polynomials
julia> p = ImmutablePolynomial{Bool, :x, 1}((true,))
ImmutablePolynomial(true)
julia> @inferred coeffs(p)
ERROR: return type Tuple{Bool} does not match inferred return type Tuple{Vararg{Bool}}
```
1 parent 5f5ba86 commit aa9bec7
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments