mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Check if a branch is unreachable
This commit is contained in:
parent
d4baf0ab37
commit
8e2eb2b28d
1 changed files with 1 additions and 0 deletions
|
@ -342,6 +342,7 @@ pub fn canonicalize_module_defs<'a>(
|
|||
}
|
||||
}
|
||||
} else if [Symbol::LIST_LIST, Symbol::STR_STR, Symbol::BOX_BOX_TYPE].contains(&symbol) {
|
||||
unreachable!("This branch seems unreachable and should probably be deleted.");
|
||||
// These are not aliases but Apply's and we make sure they are always in scope
|
||||
} else {
|
||||
// This is a type alias or ability
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue