diff options
Diffstat (limited to 'src/compile.cpp')
-rw-r--r-- | src/compile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compile.cpp b/src/compile.cpp index 30a8a95..2b16a78 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -46,7 +46,7 @@ AFn::compile(CEnv& cenv) CVal ACall::compile(CEnv& cenv) { - AFn* c = cenv.tenv.resolve(at(0))->to<AFn*>(); + AFn* c = cenv.resolve(at(0))->to<AFn*>(); if (!c) return NULL; // Primitive @@ -54,8 +54,6 @@ ACall::compile(CEnv& cenv) for (size_t i = 1; i < size(); ++i) protT.push_back(cenv.type(at(i))); - TEnv::GenericTypes::const_iterator gt = cenv.tenv.genericTypes.find(c); - assert(gt != cenv.tenv.genericTypes.end()); AType fnT(loc); fnT.push_back(cenv.penv.sym("Fn")); fnT.push_back(&protT); |