mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Remove flex var case when checking symbol suffix
This commit is contained in:
parent
2859829ea8
commit
ea35094b28
2 changed files with 3 additions and 7 deletions
|
@ -1616,12 +1616,8 @@ fn check_symbol_suffix(
|
|||
if let Content::Structure(FlatType::Func(_, _, _, fx)) =
|
||||
env.subs.get_content_without_compacting(loc_var.value)
|
||||
{
|
||||
match env.subs.get_content_without_compacting(*fx) {
|
||||
// [purity-inference] TODO: Should FlexVar actually be a case?
|
||||
Content::Pure | Content::FlexVar(_) => {
|
||||
problems.push(TypeError::SuffixedPureFunction(loc_var.region, symbol));
|
||||
}
|
||||
_ => {}
|
||||
if let Content::Pure = env.subs.get_content_without_compacting(*fx) {
|
||||
problems.push(TypeError::SuffixedPureFunction(loc_var.region, symbol));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue