mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
add CoerceToTagId
This commit is contained in:
parent
454241a04f
commit
e1af2eb7d0
6 changed files with 47 additions and 1 deletions
|
@ -1596,6 +1596,11 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
EmptyArray => empty_polymorphic_list(env),
|
||||
Array { elem_layout, elems } => list_literal(env, scope, elem_layout, elems),
|
||||
RuntimeErrorFunction(_) => todo!(),
|
||||
CoerceToTagId { .. } => {
|
||||
// we will do more here in the future
|
||||
|
||||
env.context.struct_type(&[], false).const_zero().into()
|
||||
}
|
||||
GetTagId {
|
||||
structure,
|
||||
union_layout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue