We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following compiles without warnings.
class Foo: def sum(xs: List[Int]): Int = loop(0, xs) def loop(sum: Int, xs: List[Int]): Int = xs match case head :: tail => loop(sum + head, tail) case Nil => sum
Foo will have both public methods sum and loop, but the syntax seems to suggest that loop is local.
Foo
sum
loop
Should warn about misaligned indentation.
The text was updated successfully, but these errors were encountered:
does fail compilation as expected
Sorry, something went wrong.
Not sure how we would add a warning without breaking reasonable code.
No branches or pull requests
Code
The following compiles without warnings.
Output
Foo
will have both public methodssum
andloop
, but the syntax seems to suggest thatloop
is local.Expectation
Should warn about misaligned indentation.
The text was updated successfully, but these errors were encountered: