Merge pull request #4303 from roc-lang/i4291

Make sure self-recursive checks only happen after typechecking
This commit is contained in:
Folkert de Vries 2022-10-23 01:18:56 +02:00 committed by GitHub
commit 4a5c8fd7ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 79 additions and 120 deletions

View file

@ -422,7 +422,7 @@ pub fn canonicalize_module_defs<'a>(
};
let (mut declarations, mut output) =
crate::def::sort_can_defs_new(&mut env, &mut scope, var_store, defs, new_output);
crate::def::sort_can_defs_new(&mut scope, var_store, defs, new_output);
debug_assert!(
output.pending_derives.is_empty(),