Skip to content

Commit 5ea7af3

Browse files
bicycle1885KristofferC
authored andcommitted
guard `isempty (close #41656) (#41752)
(cherry picked from commit 4c3829d)
1 parent b8f524d commit 5ea7af3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

contrib/generate_precompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

3-
if isempty(Base.ARGS) || Base.ARGS[1] !== "0"
3+
if Base.isempty(Base.ARGS) || Base.ARGS[1] !== "0"
44
Sys.__init_build()
55
# Prevent this from being put into the Main namespace
66
@eval Module() begin

test/misc.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,3 +912,6 @@ end
912912
@testset "issue #28188" begin
913913
@test `$(@__FILE__)` == let file = @__FILE__; `$file` end
914914
end
915+
916+
# issue #41656
917+
@test success(`$(Base.julia_cmd()) -e 'isempty(x) = true'`)

0 commit comments

Comments
 (0)