diff --git a/src/library/compiler/ir_interpreter.cpp b/src/library/compiler/ir_interpreter.cpp
index 03b3c48146..bb02a8180a 100644
--- a/src/library/compiler/ir_interpreter.cpp
+++ b/src/library/compiler/ir_interpreter.cpp
@@ -664,15 +664,6 @@ class interpreter {
return d.get().value();
}
- /** \brief Retrieve Lean definition from environment. */
- decl get_fdecl(name const & fn) {
- decl d = get_decl(fn);
- if (decl_tag(d) == decl_kind::Extern) {
- throw exception(sstream() << "unexpected external declaration '" << fn << "'");
- }
- return d;
- }
-
/** \brief Evaluate nullary function ("constant"). */
value load(name const & fn, type t) {
constant_cache_entry const * cached = m_constant_cache.find(fn);
@@ -853,8 +844,9 @@ public:
}
uint32 run_main(int argc, char * argv[]) {
- decl d = get_fdecl("main");
+ decl d = get_decl("main");
array_ref const & params = decl_params(d);
+ buffer