From e4dfafc26756b6e9fe3df445efb5a14d4cab3e31 Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 6 Nov 2017 09:02:24 -0500 Subject: Typecheck type aliases --- src/semantic/translate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/semantic/translate.rs b/src/semantic/translate.rs index 43c0fb0..6c7f60c 100644 --- a/src/semantic/translate.rs +++ b/src/semantic/translate.rs @@ -64,7 +64,7 @@ fn trans_decl<'a>( err!(decl, TypeError::Unimplemented) } ast::DeclarationBody::Ty { ref ty } => { - err!(decl, TypeError::Unimplemented) + trans_ty(venv, tenv, ty) } ast::DeclarationBody::Var { ref ty, ref value } => { let actual_ty = trans_exp(venv, tenv, &value)?; -- cgit v1.2.3