mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
No Encode/Decode for Nat
This commit is contained in:
parent
99050956d3
commit
572a666780
5 changed files with 131 additions and 14 deletions
|
@ -126,6 +126,7 @@ impl FlatEncodable {
|
|||
Symbol::NUM_DEC | Symbol::NUM_DECIMAL => Ok(Immediate(Symbol::ENCODE_DEC)),
|
||||
Symbol::NUM_F32 | Symbol::NUM_BINARY32 => Ok(Immediate(Symbol::ENCODE_F32)),
|
||||
Symbol::NUM_F64 | Symbol::NUM_BINARY64 => Ok(Immediate(Symbol::ENCODE_F64)),
|
||||
Symbol::NUM_NAT | Symbol::NUM_NATURAL => Err(Underivable),
|
||||
// TODO: I believe it is okay to unwrap opaques here because derivers are only used
|
||||
// by the backend, and the backend treats opaques like structural aliases.
|
||||
_ => Self::from_var(subs, real_var),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue