mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Fix compile errors
This commit is contained in:
parent
9760462ec5
commit
9a01117536
5 changed files with 129 additions and 18 deletions
|
@ -471,6 +471,15 @@ pub enum Recursive {
|
|||
TailRecursive = 2,
|
||||
}
|
||||
|
||||
impl Recursive {
|
||||
pub fn is_recursive(&self) -> bool {
|
||||
match self {
|
||||
Recursive::NotRecursive => false,
|
||||
Recursive::Recursive | Recursive::TailRecursive => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct WhenBranch {
|
||||
pub patterns: Vec<Loc<Pattern>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue