Check if a branch is unreachable

This commit is contained in:
Richard Feldman 2022-12-29 20:48:45 -05:00
parent d4baf0ab37
commit 8e2eb2b28d
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -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