Add 'internal' types.
This commit is contained in:
@@ -25,7 +25,7 @@ void yy::parser::error(const yy::location& loc, const std::string& msg) {
|
||||
void typecheck_program(
|
||||
definition_group& defs,
|
||||
type_mgr& mgr, type_env_ptr& env) {
|
||||
type_ptr int_type = type_ptr(new type_base("Int"));
|
||||
type_ptr int_type = type_ptr(new type_internal("Int"));
|
||||
env->bind_type("Int", int_type);
|
||||
type_ptr int_type_app = type_ptr(new type_app(int_type));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user