@@ -210,10 +210,13 @@ include("testutils.jl")
210210 end
211211
212212 @testset " conversion_type for NormalizedPolynomialSpace" begin
213- @test conversion_type (NormalizedLegendre (), Jacobi (1 ,1 )) == NormalizedLegendre ()
214- @test conversion_type (Jacobi (1 ,1 ), NormalizedLegendre ()) == NormalizedLegendre ()
215- @test conversion_type (Jacobi (1 ,1 ), NormalizedJacobi (2 ,2 )) == Jacobi (1 ,1 )
216- @test conversion_type (NormalizedJacobi (2 ,2 ), Jacobi (1 ,1 )) == Jacobi (1 ,1 )
213+ @test (@inferred conversion_type (NormalizedLegendre (), Jacobi (1 ,1 ))) == Legendre ()
214+ @test (@inferred conversion_type (Jacobi (1 ,1 ), NormalizedLegendre ())) == Legendre ()
215+ @test (@inferred conversion_type (Jacobi (1 ,1 ), NormalizedJacobi (2 ,2 ))) == Jacobi (1 ,1 )
216+ @test (@inferred conversion_type (NormalizedJacobi (2 ,2 ), Jacobi (1 ,1 ))) == Jacobi (1 ,1 )
217+
218+ @test (@inferred (() ->
219+ conversion_type (NormalizedLegendre (0 .. 1 ), Legendre (0 .. 1 )))()) == Legendre (0 .. 1 )
217220 end
218221
219222 @testset " NormalizedPolynomialSpace constructor" begin
@@ -636,6 +639,11 @@ include("testutils.jl")
636639 @test space (1 + Fun (NormalizedLegendre ())) == NormalizedLegendre ()
637640 @test space (1 + Fun (NormalizedJacobi (1 ,1 ,0 .. 1 ))) == NormalizedJacobi (1 ,1 ,0 .. 1 )
638641 end
642+
643+ @testset " inference in maxspace/conversion_type" begin
644+ @inferred maxspace (NormalizedLegendre (), Legendre ())
645+ @inferred (()-> maxspace (NormalizedLegendre (0 .. 1 ), Legendre (0 .. 1 )))()
646+ end
639647 end
640648
641649 @testset " casting bug ApproxFun.jl#770" begin
0 commit comments