mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Improve error pattern and fix tests
This commit is contained in:
parent
75cef24ee0
commit
720b7b49d2
3 changed files with 7 additions and 7 deletions
|
@ -196,7 +196,7 @@ pub fn canonicalize_pattern<'a>(
|
|||
env.problem(Problem::RuntimeError(RuntimeError::OpaqueNotApplied(
|
||||
loc_name.clone(),
|
||||
)));
|
||||
Pattern::OpaqueNotInScope(loc_name)
|
||||
Pattern::UnsupportedPattern(region)
|
||||
}
|
||||
Apply(tag, patterns) => {
|
||||
let mut can_patterns = Vec::with_capacity(patterns.len());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue