Skip to content

Commit 90b6e1d

Browse files
committed
Add a test for #31696
1 parent ea7166b commit 90b6e1d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/core.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7221,3 +7221,14 @@ struct AVL35416{K,V}
72217221
avl:: Union{Nothing,Node35416{AVL35416{K,V},<:K,<:V}}
72227222
end
72237223
@test AVL35416(Node35416{AVL35416{Integer,AbstractString},Int,String}()) isa AVL35416{Integer,AbstractString}
7224+
7225+
# issue #31696
7226+
foo31696(x::Int8, y::Int8) = 1
7227+
foo31696(x::T, y::T) where {T <: Int8} = 2
7228+
@test length(methods(foo31696)) == 1
7229+
let T1 = Tuple{Int8}, T2 = Tuple{T} where T<:Int8, a = T1[(1,)], b = T2[(1,)]
7230+
b .= a
7231+
@test b[1] == (1,)
7232+
a .= b
7233+
@test a[1] == (1,)
7234+
end

0 commit comments

Comments
 (0)