Skip to content

Commit

Permalink
public as an identifier is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Feb 25, 2024
1 parent f7138f9 commit bed1f7d
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

Check warning on line 2 in src/precompile.jl

View check run for this annotation

Codecov / codecov/patch

src/precompile.jl#L2

Added line #L2 was not covered by tests
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

Check warning on line 9 in src/precompile.jl

View check run for this annotation

Codecov / codecov/patch

src/precompile.jl#L9

Added line #L9 was not covered by tests
module Private
private(y::String) = false
end
Expand Down

0 comments on commit bed1f7d

Please sign in to comment.