aboutsummaryrefslogtreecommitdiffstats
path: root/src/constrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constrain.cpp')
-rw-r--r--src/constrain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp
index f9a0e11..7db25fa 100644
--- a/src/constrain.cpp
+++ b/src/constrain.cpp
@@ -23,6 +23,12 @@
#include "tuplr.hpp"
void
+AString::constrain(TEnv& tenv, Constraints& c) const
+{
+ c.push_back(Constraint(tenv.var(this), tenv.named("String"), loc));
+}
+
+void
ASymbol::constrain(TEnv& tenv, Constraints& c) const
{
addr = tenv.lookup(this);