Skip to content

Commit

Permalink
Compat annotations for @something/@coalesce (#40824)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored May 14, 2021
1 parent d425ca8 commit 2dfe8d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/missing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ f(3)
ERROR: `b` is still missing
[...]
```
!!! compat "Julia 1.7"
This macro is available as of Julia 1.7.
"""
macro coalesce(args...)
expr = :(missing)
Expand Down
3 changes: 3 additions & 0 deletions base/some.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ f(3)
julia> b === nothing
true
```
!!! compat "Julia 1.7"
This macro is available as of Julia 1.7.
"""
macro something(args...)
expr = :(nothing)
Expand Down

0 comments on commit 2dfe8d7

Please sign in to comment.