Skip to content

Commit f93a1fe

Browse files
authored
Test for PlusOp eltype inference (#150)
1 parent 92b727c commit f93a1fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/ChebyshevTest.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ using ApproxFunOrthogonalPolynomials: forwardrecurrence
268268
f2 = Fun(f, s2)
269269
@test f1 == f2
270270
@test D1 * f1 == D2 * f2
271+
272+
@test (@inferred (D1 -> eltype(D1 + D1))(D1)) == eltype(D1)
271273
end
272274

273275
@testset "space promotion" begin

0 commit comments

Comments
 (0)