Skip to content

Commit

Permalink
make wildcard arm exhaustively specific
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-phillips committed Aug 23, 2024
1 parent 8cc4859 commit 06a5933
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/compiler/internal/transformer/statements.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ fn transform_expression(

glance.Block(statements) -> transform_block(context, statements)

glance.Case(..) -> todo as "case expressions not supported yet"

glance.TupleIndex(tuple, index) -> {
transform_expression(context, tuple)
|> internal.map_return(python.TupleIndex(_, index))
Expand All @@ -164,12 +166,9 @@ fn transform_expression(
glance.RecordUpdate(record:, fields:, ..) ->
transform_record_update(context, record, fields)

glance.BitString(_) as expr
| glance.Block(_) as expr
| glance.Case(_, _) as expr
| glance.Fn(_, _, _) as expr -> {
glance.BitString(_) as expr -> {
pprint.debug(expr)
todo as "Several expressions are not implemented yet"
todo as "BitString expressions not supported yet"
}
}
}
Expand Down

0 comments on commit 06a5933

Please sign in to comment.