Revision 9e947e5ca6276df4e2d00a860eea2d54b782ba9f authored by Jeff Bezanson on 23 February 2017, 05:01:14 UTC, committed by Jeff Bezanson on 23 February 2017, 05:01:14 UTC
1 parent 03939e7
Raw File
workspace.jl
# This file is a part of Julia. License is MIT: http://julialang.org/license

script = """
# Issue #11948
f(x) = x+1
workspace()
@assert !isdefined(:f)
LastMain.f(2)

# PR #12990
io = IOBuffer()
show(io, Pair)
@assert String(take!(io)) == "Pair"
@assert !Base.inbase(LastMain)
"""
exename = Base.julia_cmd()
run(`$exename --startup-file=no -e $script`)

# issue #17764
script2 = """
mutable struct Foo end
workspace()
mutable struct Foo end
@assert Tuple{Type{LastMain.Foo}} !== Tuple{Type{Main.Foo}}
"""
run(`$exename --startup-file=no -e $script2`)
back to top