mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
add reporting tests
This commit is contained in:
parent
b2e6ebd32e
commit
619cabe1b8
3 changed files with 31 additions and 3 deletions
|
@ -1087,7 +1087,7 @@ fn canonicalize_field<'a>(
|
|||
|
||||
OptionalValue(label, _, loc_expr) => Err(CanonicalizeFieldProblem::InvalidOptionalValue {
|
||||
field_name: Lowercase::from(label.value),
|
||||
field_region: loc_expr.region,
|
||||
field_region: Region::span_across(&label.region, &loc_expr.region),
|
||||
}),
|
||||
|
||||
// A label with no value, e.g. `{ name }` (this is sugar for { name: name })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue