Skip to content

Commit 8934aab

Browse files
authored
Merge pull request #21358 from JuliaLang/mh/test_20103
Add tests for #20103
2 parents 0da1a33 + c691234 commit 8934aab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/subtype.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1070,3 +1070,9 @@ 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+
struct 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+
@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)