Skip to content

Commit

Permalink
public as an identifier is deprecated (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson authored Jun 14, 2024
1 parent ce6e341 commit 397ea70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/construct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ In a fresh session,
```
julia> expr = quote
public(x::Integer) = true
public_fn(x::Integer) = true
module Private
private(y::String) = false
end
Expand All @@ -365,7 +365,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr)
mod = Main
ex = quote
#= REPL[7]:2 =#
public(x::Integer) = begin
public_fn(x::Integer) = begin
#= REPL[7]:2 =#
true
end
Expand Down Expand Up @@ -415,7 +415,7 @@ julia> for (mod, ex) in ExprSplitter(Main, expr)
julia> threshold
0.1
julia> public(3)
julia> public_fn(3)
true
```
Expand Down
4 changes: 2 additions & 2 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module var"#Internal"
public(x::String) = false
public_fn(x::String) = false
end

function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
@interpret sum(rand(10))
expr = quote
public(x::Integer) = true
public_fn(x::Integer) = true
module Private
private(y::String) = false
end
Expand Down

0 comments on commit 397ea70

Please sign in to comment.