Commit 00321e8
committed
Fix a JET error around matching methods for
* Fix a JET error around matching methods for `push!(...)`
```
┌ @ Distributed /workpath/Distributed.jl/src/process_messages.jl:387
│ no matching method found `push!(::Nothing, ::Any)` (1/2 union split): Distributed.push!(default_worker_pool()::Union{Nothing, Distributed.AbstractWorkerPool}, w.id::Any)
└────────────────────
```
(cherry picked from commit f15f306adaafbedc2f431c96087da2ea483c9558)
* Add a `::AbstractWorkerPool` return type annotation to `default_worker_pool()`
* Add a type annotation in an additional place, to fix another JET error
(cherry picked from commit b7c43b235a963d19ec1c5e5aa9b8a565b6e49c34)push!(...) (#173)1 parent 0d39458 commit 00321e8
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
0 commit comments