aboutsummaryrefslogtreecommitdiff
path: root/neb/std/types.py
diff options
context:
space:
mode:
authormryouse2022-08-03 01:20:59 +0000
committermryouse2022-08-03 01:20:59 +0000
commitac7a6c08ebba80c6c5d8b4d8ce79d06a6c86d9ee (patch)
tree9c4e8933fe8a1bb999103f154cdd5e08fd2e2dbc /neb/std/types.py
parent1faf205666b8c4e763b15563e5216d5505a382b5 (diff)
bugfix: :[] return types in std
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)