aboutsummaryrefslogtreecommitdiff
path: root/neb
diff options
context:
space:
mode:
authormryouse2022-07-11 02:10:37 +0000
committermryouse2022-07-11 02:10:37 +0000
commitc44f647461cde3be5ee431ad32bbd3f238266db6 (patch)
treedf7d19170ff380afde699d43759af662dcc8dde7 /neb
parent6cb8aa19bc47301ae34eecf8c119723c12da34bd (diff)
bugfix: Type and TypeWrap don't have the same name
Diffstat (limited to 'neb')
-rw-r--r--neb/std/boolean.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/std/boolean.py b/neb/std/boolean.py
index e480656..1c8b8ae 100644
--- a/neb/std/boolean.py
+++ b/neb/std/boolean.py
@@ -7,7 +7,7 @@ def interpretEq(symbol, args, env, ns):
# TODO this is a bit hacky
if (isinstance(args[0], Type) or isinstance(args[0], TypeWrap)) and \
(isinstance(args[1], Type) or isinstance(args[1], TypeWrap)):
- if args[0].name == args[1].name:
+ if f"{args[0]}" == f"{args[1]}":
return Bool(True)
else:
return Bool(False)