Skip to content

Commit feddd37

Browse files
authored
Add generic isnull method
1 parent d0e7684 commit feddd37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/nullable.jl

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ end
6262
get(x::Nullable) = x.isnull ? throw(NullException()) : x.value
6363

6464
isnull(x::Nullable) = x.isnull
65+
isnull(x) = false
6566

6667
function isequal(x::Nullable, y::Nullable)
6768
if x.isnull && y.isnull

0 commit comments

Comments
 (0)