Handle all user generated code errors in the type checker #885

Merged
ghallak merged 15 commits from ghallak/270 into master 2022-07-26 00:48:47 +09:00
Showing only changes of commit df9f258394 - Show all commits

View File

@ -1664,7 +1664,7 @@ check_state_init(Env) ->
case unfold_types_in_type(Env, StateType) of case unfold_types_in_type(Env, StateType) of
false -> false ->
ok; ok;
{_, {_, {_, {alias_t, {tuple_t, _, []}}}}} -> {_, {_, {_, {alias_t, {tuple_t, _, []}}}}} -> %% type state = ()
ok; ok;
_ -> _ ->
#scope{ ann = AnnCon } = get_scope(Env, Top), #scope{ ann = AnnCon } = get_scope(Env, Top),