X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=blobdiff_plain;f=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_semant.ml;fp=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_semant.ml;h=21816959a1ab402b4f736c3d27cf15f73f06d5e6;hp=a3893fa89a49f5650e3e0da9cc973d5a9c99a684;hb=9340b0e333dd6acb5b18f68d1bf3eadad8401fa5;hpb=54e838f482844369048d4f88e87a092a87162b72 diff --git a/compiler/src/lib/tiger/tiger_semant.ml b/compiler/src/lib/tiger/tiger_semant.ml index a3893fa..2181695 100644 --- a/compiler/src/lib/tiger/tiger_semant.ml +++ b/compiler/src/lib/tiger/tiger_semant.ml @@ -3,7 +3,6 @@ module List = ListLabels module A = Tiger_absyn module Env = Tiger_env module E = Tiger_error -module Symbol = Tiger_symbol module Translate = Tiger_translate module Type = Tiger_env_type module Value = Tiger_env_value @@ -295,7 +294,7 @@ end = struct List.iter typedecs ~f:(fun (A.TypeDec {name; ty=ty_exp; pos}) -> let ty = transTy ~env ty_exp in (match env_get_typ ~sym:name ~env ~pos with - | Type.Name (name, ty_opt_ref) -> + | Type.Name (_, ty_opt_ref) -> ty_opt_ref := Some ty | Type.Unit | Type.Nil