Skip to content

Commit

Permalink
add test for #27078
Browse files Browse the repository at this point in the history
  • Loading branch information
jrevels committed Jul 6, 2018
1 parent 9f71211 commit cdf6987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/compiler/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1717,3 +1717,8 @@ Base.iterate(i::Iterator27434, ::Val{2}) = i.z, Val(3)
Base.iterate(::Iterator27434, ::Any) = nothing
@test @inferred splat27434(Iterator27434(1, 2, 3)) == (1, 2, 3)
@test Core.Compiler.return_type(splat27434, Tuple{typeof(Iterators.repeated(1))}) == Union{}

# issue #27078
f27078(T::Type{S}) where {S} = isa(T, UnionAll) ? f27078(T.body) : T
T27078 = Vector{Vector{T}} where T
@test f27078(T27078) === T27078.body

0 comments on commit cdf6987

Please sign in to comment.