Skip to content

Commit

Permalink
Compat annotation for #29679 (isnothing).
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Dec 4, 2018
1 parent b022464 commit 05a4dfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/some.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ notnothing(::Nothing) = throw(ArgumentError("nothing passed to notnothing"))
isnothing(x)
Return `true` if `x === nothing`, and return `false` if not.
!!! compat "Julia 1.1"
This function requires at least Julia 1.1.
"""
isnothing(::Any) = false
isnothing(::Nothing) = true
Expand Down

0 comments on commit 05a4dfd

Please sign in to comment.