We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
class A { def odd(x: Int) = if (x == 0) false else !even(x-1) def even(x: Int) = if (x == 0) true else !odd(x-1) }
dotty:
3 | def even(x: Int) = if (x == 0) true else !odd(x-1) | ^^^ | cyclic reference involving method odd
Contrast with scalac:
mutrec.scala:3: error: recursive method odd needs result type def even(x: Int) = if (x == 0) true else !odd(x-1) ^
The text was updated successfully, but these errors were encountered:
Merge pull request #2026 from dotty-staging/fix-#2001
db24246
Better error messages for missing type of recursive definitions
XXX Confirm we actually found a member with right name.
aec70d4
XXX But that's maybe a bad idea, test on mutual recursion (scala#2001)!
69bafc2
87f885b
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
dotty:
Contrast with scalac:
The text was updated successfully, but these errors were encountered: