File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -583,12 +583,6 @@ function add_return_to_last_statment(body::Expr)
583
583
return Expr (body. head, new_args... )
584
584
end
585
585
586
- const FloatOrArrayType = Type{<: Union{AbstractFloat,AbstractArray} }
587
- hasmissing (:: Type ) = false
588
- hasmissing (:: Type{>:Missing} ) = true
589
- hasmissing (:: Type{<:AbstractArray{TA}} ) where {TA} = hasmissing (TA)
590
- hasmissing (:: Type{Union{}} ) = false # issue #368
591
-
592
586
"""
593
587
TypeWrap{T}
594
588
Original file line number Diff line number Diff line change @@ -666,20 +666,6 @@ module Issue537 end
666
666
@test demo_ret_with_ret ()() === Val (1 )
667
667
end
668
668
669
- @testset " issue #368: hasmissing dispatch" begin
670
- @test ! DynamicPPL. hasmissing (typeof (Union{}[]))
671
-
672
- # (nested) arrays with `Missing` eltypes
673
- @test DynamicPPL. hasmissing (Vector{Union{Missing,Float64}})
674
- @test DynamicPPL. hasmissing (Matrix{Union{Missing,Real}})
675
- @test DynamicPPL. hasmissing (Vector{Matrix{Union{Missing,Float32}}})
676
-
677
- # no `Missing`
678
- @test ! DynamicPPL. hasmissing (Vector{Float64})
679
- @test ! DynamicPPL. hasmissing (Matrix{Real})
680
- @test ! DynamicPPL. hasmissing (Vector{Matrix{Float32}})
681
- end
682
-
683
669
@testset " issue #393: anonymous argument with type parameter" begin
684
670
@model f_393 (:: Val{ispredict} = Val (false )) where {ispredict} = ispredict ? 0 : 1
685
671
@test f_393 ()() == 1
You can’t perform that action at this time.
0 commit comments