mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Enable optional record field underivable error
This commit is contained in:
parent
55fe1df995
commit
e77e53f37b
2 changed files with 17 additions and 14 deletions
|
@ -425,7 +425,9 @@ fn underivable_hint<'b>(
|
|||
alloc.reflow("Roc cannot derive decoding for a record with an optional field, which in this case is "),
|
||||
alloc.record_field(field),
|
||||
alloc.reflow(". Optional record fields are polymorphic over records that may or may not contain them at compile time, "),
|
||||
alloc.reflow("but are not a concept that extends to runtime! That means Roc cannot derive a decoder for a record with an optional value "),
|
||||
alloc.reflow("but are not a concept that extends to runtime!"),
|
||||
alloc.hardline(),
|
||||
alloc.reflow("That means Roc cannot derive a decoder for a record with an optional value "),
|
||||
alloc.reflow("by way of an optional record field. If you want to model the idea that a field may or may not be present at runtime, "),
|
||||
alloc.reflow("consider using a "),
|
||||
alloc.symbol_unqualified(Symbol::RESULT_RESULT),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue