Skip to content

Commit 6638d93

Browse files
committed
Add tests for #20103
1 parent d91a719 commit 6638d93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/subtype.jl

+9
Original file line numberDiff line numberDiff line change
@@ -1070,3 +1070,12 @@ end
10701070
@testintersect(Tuple{A20992{R, D, d} where d where D, Int} where R,
10711071
Tuple{C20992{S, n, T, D, d} where d where D where T where n where S, Any},
10721072
Tuple{C20992, Int})
1073+
1074+
# issue #20103, OP and comments
1075+
immutable TT20103{X,Y} end
1076+
f20103{X,Y}(::Type{TT20103{X,Y}},x::X,y::Y) = 1
1077+
f20103{X}(::Type{TT20103{X,X}},x::X) = 100
1078+
@testintersect(Tuple{Int, Ref{Pair{K,V}}} where V where K,
1079+
Tuple{Any, Ref{Pair{T,T}} where T},
1080+
Tuple{Int, Ref{Pair{T,T}} where T})
1081+
@test_broken typeintersect(Type{NTuple{N,E}} where E where N, Type{NTuple{N,E} where N} where E) == Union{} # use @testintersect once fixed

0 commit comments

Comments
 (0)