Skip to content

Commit f7c470e

Browse files
committed
add test for #27078
1 parent d73dcb5 commit f7c470e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/compiler/compiler.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,3 +1717,8 @@ Base.iterate(i::Iterator27434, ::Val{2}) = i.z, Val(3)
17171717
Base.iterate(::Iterator27434, ::Any) = nothing
17181718
@test @inferred splat27434(Iterator27434(1, 2, 3)) == (1, 2, 3)
17191719
@test Core.Compiler.return_type(splat27434, Tuple{typeof(Iterators.repeated(1))}) == Union{}
1720+
1721+
# issue #27078
1722+
f27078(T::Type{S}) where {S} = isa(T, UnionAll) ? f27078(T.body) : T
1723+
T27078 = Vector{Vector{T}} where T
1724+
@test f27078(T27078) === T27078.body

0 commit comments

Comments
 (0)