diff options
Diffstat (limited to 'tuplr.hpp')
-rw-r--r-- | tuplr.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -50,7 +50,7 @@ struct Cursor { /// Compiler error struct Error { - Error(const string& m, Cursor c=Cursor()) : msg(m), loc(c) {} + Error(const string& m, Cursor c) : msg(m), loc(c) {} const string what() const { return (loc ? loc.str() + ": " : "") + "error: " + msg; } string msg; Cursor loc; @@ -220,7 +220,7 @@ struct ATuple : public AST, public vector<AST*> { return false; } void constrain(TEnv& tenv, Constraints& c) const; - CValue compile(CEnv& cenv) { throw Error("tuple compiled"); } + CValue compile(CEnv& cenv) { throw Error("tuple compiled", loc); } }; /// Type Expression, e.g. "Int", "(Fn (Int Int) Float)" |