Skip to content

Commit fa91f52

Browse files
committed
fix tests on 1.5
1 parent 6b99ad6 commit fa91f52

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/runtests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
continue-on-error: ${{ matrix.experimental == 'nightly' }}
99
strategy:
1010
matrix:
11-
julia-version: ['1.3', '1.4'] # todo: add back nightly once it stops hanging or they allow timeout failures
11+
julia-version: ['1.3', '1.4', '1.5'] # todo: add back nightly once it stops hanging or they allow timeout failures
1212
os: [ubuntu-latest]
1313
JULIA_FFTW_PROVIDER: ['MKL'] # would be nice to get FFTW working too
1414
fail-fast: false

src/generic.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ for op in (:*, :/)
251251
@eval ($op)(a::Field{B,S,P}, b::Field{B,S,P}) where {B,S,P} = broadcast($op, a, b)
252252
end
253253

254+
# needed unless I convince them to undo the changes here:
255+
# https://github.com/JuliaLang/julia/pull/35257#issuecomment-657901503
256+
if VERSION>v"1.4"
257+
*(x::Adjoint{<:Number,<:Field}, y::Field) = dot(x.parent,y)
258+
end
254259

255260
(::Type{T})(f::Field{<:Any,<:Any,<:Any,<:Real}) where {T<:Real} = T.(f)
256261
(::Type{T})(f::Field{<:Any,<:Any,<:Any,<:Complex}) where {T<:Real} = Complex{T}.(f)

0 commit comments

Comments
 (0)