Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile false alarm warning #122

Closed
bobzhang opened this issue Mar 26, 2024 · 1 comment
Closed

compile false alarm warning #122

bobzhang opened this issue Mar 26, 2024 · 1 comment
Assignees

Comments

@bobzhang
Copy link
Contributor

fn op_equal[T : Eq](self : Cell[T], other : Cell[T]) -> Bool {
  loop self, other {
    Nil, Nil => true
    Cons({ content: x, next: xs }), Cons({ content: y, next: ys }) =>
       x == y &&
        continue xs, ys
      
    _, _ => false
  }
}

Warning 018: There is no [continue] in this loop expression, so [loop] is useless here.

@bobzhang
Copy link
Contributor Author

this seems works as intended but the error shadows the warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants