aboutsummaryrefslogtreecommitdiffstats
path: root/typing.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-15 17:40:52 +0000
committerDavid Robillard <d@drobilla.net>2009-03-15 17:40:52 +0000
commit26890bcd5b910603f1955ba125b1602fbc2bfa9d (patch)
tree9f5d101a34e53cdd3fbc9ccbda46775d0ceeb050 /typing.cpp
parent305b93cf83fc513af85cf459fc9fa240d00c0e1b (diff)
downloadresp-26890bcd5b910603f1955ba125b1602fbc2bfa9d.tar.gz
resp-26890bcd5b910603f1955ba125b1602fbc2bfa9d.tar.bz2
resp-26890bcd5b910603f1955ba125b1602fbc2bfa9d.zip
Fix REPL variable addressing.
git-svn-id: http://svn.drobilla.net/resp/tuplr@107 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'typing.cpp')
-rw-r--r--typing.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/typing.cpp b/typing.cpp
index 518ab00..94826e9 100644
--- a/typing.cpp
+++ b/typing.cpp
@@ -156,8 +156,6 @@ ADefinition::constrain(TEnv& tenv, Constraints& c) const
const ASymbol* sym = at(1)->to<const ASymbol*>();
if (!sym)
throw Error("`def' name is not a symbol", loc);
- if (tenv.lookup(sym))
- throw Error(string("`") + at(1)->str() + "' redefined", loc);
AType* tvar = tenv.var(at(2));
tenv.def(sym, make_pair(at(2), tvar));
at(2)->constrain(tenv, c);