From 5960b523e7a3cef0c07ba094ee2cd07ff7c32eda Mon Sep 17 00:00:00 2001 From: N5N3 <2642243996@qq.com> Date: Thu, 16 Mar 2023 10:03:42 +0800 Subject: [PATCH] Add test for #48961 (#49014) --- test/subtype.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/subtype.jl b/test/subtype.jl index c7a2dcdcc113f..dfd1a62d5f895 100644 --- a/test/subtype.jl +++ b/test/subtype.jl @@ -2458,3 +2458,6 @@ let S = Tuple{Type{S48695{T, 2, T48695{B, 2, C}}} where {T<:(Union{Missing, A} w @test allunique(vars_in_unionall(V)) @test typeintersect(V, T) != Union{} end + +#issue 48961 +@test !<:(Type{Union{Missing, Int}}, Type{Union{Missing, Nothing, Int}})