Skip to content

Commit

Permalink
Allow test/core.jl to be run from REPL
Browse files Browse the repository at this point in the history
If you've already said `using Test`, defining a function named `Test` causes problems.
  • Loading branch information
timholy committed Jan 7, 2018
1 parent 8fa2d8a commit c892056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1896,11 +1896,11 @@ test5884()

# issue #5924
let
function Test()
function test5924()
func = function () end
func
end
@test Test()() === nothing
@test test5924()() === nothing
end

# issue #6031
Expand Down

0 comments on commit c892056

Please sign in to comment.