We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce5bbe commit bd0198eCopy full SHA for bd0198e
test/core.jl
@@ -6025,6 +6025,14 @@ let a = Foo17149()
6025
@test a === a
6026
end
6027
6028
+#issue #22792
6029
+foo_22792(::Type{<:Union{Int8,Int,UInt}}) = 1;
6030
+@test foo_22792(Union{Int,UInt}) == 1
6031
+foo_22792(::Union) = 2;
6032
6033
+@test foo_22792(Union{Int8,UInt}) == 1
6034
6035
+
6036
# issue #25907
6037
g25907a(x) = x[1]::Integer
6038
@test g25907a(Union{Int, UInt, Nothing}[1]) === 1
0 commit comments