mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Generate derive keys for tags
This commit is contained in:
parent
fd54cdfdd1
commit
5eb00c4f94
5 changed files with 108 additions and 25 deletions
|
@ -22,6 +22,7 @@ use crate::{synth_var, util::Env, DerivedBody};
|
|||
pub(crate) fn derive_hash(env: &mut Env<'_>, key: FlatHashKey, def_symbol: Symbol) -> DerivedBody {
|
||||
let (body, body_type) = match key {
|
||||
FlatHashKey::Record(fields) => hash_record(env, def_symbol, fields),
|
||||
FlatHashKey::TagUnion(_) => todo!(),
|
||||
};
|
||||
|
||||
let specialization_lambda_sets =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue