Add Nil constructor and tests

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-09-30 12:48:45 -07:00
parent 3d0da0ec85
commit 724a6b6f99
6 changed files with 46 additions and 1 deletions

16
tests/nil.npp Normal file
View File

@@ -0,0 +1,16 @@
# Nil type operator and function tests
a = nil
println("__not__")
println(!nil)
println(!!nil)
println("__eq__")
println(nil == nil)
println("__ne__")
println(nil != nil)
println("constructor")
println(Nil())