diff options
| author | mryouse | 2022-07-26 01:49:07 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-26 01:49:07 +0000 |
| commit | f2125f46a689abd037b081a17c112ec3170ee0e4 (patch) | |
| tree | b79155cdb3040c2d337b385d0a56d5757d09a5bb /neb/__init__.py | |
| parent | 973d1f2fb34188adfba182b2c52d9b2b2ad52829 (diff) | |
bugfix: symbol got overwritten
Diffstat (limited to 'neb/__init__.py')
| -rw-r--r-- | neb/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/neb/__init__.py b/neb/__init__.py index bfbea19..b48b8f9 100644 --- a/neb/__init__.py +++ b/neb/__init__.py @@ -26,6 +26,8 @@ def syntaxFunc(symbol, env, ns): if isinstance(env_func, MultiFunction): env_func.register(func) env.register(symbol.name, env_func) + else: + raise InterpretPanic(symbol, "not a multifunc!") else: mf = MultiFunction(symbol.name) mf.register(func) |
