From 26890bcd5b910603f1955ba125b1602fbc2bfa9d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2009 17:40:52 +0000 Subject: Fix REPL variable addressing. git-svn-id: http://svn.drobilla.net/resp/tuplr@107 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- typing.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'typing.cpp') 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(); 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); -- cgit v1.2.1