aboutsummaryrefslogtreecommitdiff
path: root/neb/std/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'neb/std/types.py')
-rw-r--r--neb/std/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/std/types.py b/neb/std/types.py
index 20aa27a..cd899bc 100644
--- a/neb/std/types.py
+++ b/neb/std/types.py
@@ -137,7 +137,7 @@ TYPES.register("->string", tostring_multi)
def interpretTypeOf(symbol, args, env, ns):
return Type(f"{args[0].type_}")
-typeof_func = Builtin("typeof", interpretTypeOf, [Arg("candidate", TypeEnum.ANY)])
+typeof_func = Builtin("typeof", interpretTypeOf, [Arg("candidate", TypeEnum.ANY)], return_type=Type(":type"))
typeof_multi = MultiFunction("typeof")
typeof_multi.register(typeof_func)
TYPES.register("typeof", typeof_multi)