test_can pass

This commit is contained in:
Sébastien Besnier 2020-10-30 14:27:25 +01:00
parent 19bd75aa62
commit f4c1af0f19
4 changed files with 228 additions and 46 deletions

View file

@ -130,8 +130,6 @@ pub fn canonicalize_defs<'a>(
// This naturally handles recursion too, because a given expr which refers
// to itself won't be processed until after its def has been added to scope.
use roc_parse::ast::Def::*;
// Record both the original and final idents from the scope,
// so we can diff them while detecting unused defs.
let mut scope = original_scope.clone();