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
trait T: type X def x: X def test1(t: T): t.X = t.x def test2(t: T): t.X = return t.x
-- [E007] Type Mismatch Error: tests/pos-macros/return-quoted.scala:6:32 ------- 6 |def test2(t: T): t.X = return t.x | ^^^ | Found: t.X | Required: t.X 1 error found
Should compile
The text was updated successfully, but these errors were encountered:
Fix scala#9464: Fix computation of expected type in a return
ee740c8
We need to substitute type as well as term parameters in the expected type of a return to handle dependent methods correctly.
a24a370
Merge pull request #9540 from dotty-staging/fix-#9464
a2e7b73
Fix #9464: Fix computation of expected type in a return
odersky
No branches or pull requests
Minimized code
Output
Expectation
Should compile
The text was updated successfully, but these errors were encountered: