mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
can for normal (no-list) as
This commit is contained in:
parent
06cfdd71cc
commit
905341d849
9 changed files with 98 additions and 19 deletions
|
@ -301,6 +301,7 @@ fn sketch_pattern(pattern: &crate::pattern::Pattern) -> SketchedPattern {
|
|||
use SketchedPattern as SP;
|
||||
|
||||
match pattern {
|
||||
As(subpattern, _) => sketch_pattern(&subpattern.value),
|
||||
&NumLiteral(_, _, IntValue::I128(n), _) | &IntLiteral(_, _, _, IntValue::I128(n), _) => {
|
||||
SP::Literal(Literal::Int(n))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue