Skip to content

Commit

Permalink
Add test for JuliaLang#9835
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Feb 4, 2015
1 parent 22cffd6 commit 1857ad5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2130,3 +2130,11 @@ barTuple1() = fooTuple{(:y,)}()
barTuple2() = fooTuple{tuple(:y)}()

@test Base.return_types(barTuple1,())[1] == Base.return_types(barTuple2,())[1] == fooTuple{(:y,)}

#issue #9835
module M9835
using Base.Test
type A end; type B end
f() = (isa(A(), A) ? A : B)()
@test isa(f(), A)
end

0 comments on commit 1857ad5

Please sign in to comment.