Add 'internal' types.

This commit is contained in:
2020-09-09 18:08:38 -07:00
parent 9769b3e396
commit 86b49f9cc3
3 changed files with 22 additions and 21 deletions

View File

@@ -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));