mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Allow any int in switch condition layout
This commit is contained in:
parent
f0b3c3eb08
commit
a295e7ac3d
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ impl<'a, 'r> Ctx<'a, 'r> {
|
|||
} => {
|
||||
self.check_sym_layout(*cond_symbol, *cond_layout, UseKind::SwitchCond);
|
||||
match self.resolve(*cond_layout) {
|
||||
Layout::Builtin(Builtin::Int(int_width)) if !int_width.is_signed() => {}
|
||||
Layout::Builtin(Builtin::Int(_)) => {}
|
||||
Layout::Builtin(Builtin::Bool) => {}
|
||||
_ => self.problem(ProblemKind::BadSwitchConditionLayout {
|
||||
found_layout: *cond_layout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue