diff options
Diffstat (limited to 'src/cjr_env.sml')
-rw-r--r-- | src/cjr_env.sml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cjr_env.sml b/src/cjr_env.sml index 88d7972f..84f13f4d 100644 --- a/src/cjr_env.sml +++ b/src/cjr_env.sml @@ -122,8 +122,8 @@ fun declBinds env (d, loc) = let val env = pushDatatype env x n xncs in - foldl (fn ((x', n', NONE), env) => pushENamed env x' n' (TDatatype n, loc) - | ((x', n', SOME t), env) => pushENamed env x' n' (TFun (t, (TDatatype n, loc)), loc)) + foldl (fn ((x', n', NONE), env) => pushENamed env x' n' (TDatatype (n, xncs), loc) + | ((x', n', SOME t), env) => pushENamed env x' n' (TFun (t, (TDatatype (n, xncs), loc)), loc)) env xncs end | DStruct (n, xts) => pushStruct env n xts |