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 Foo { self => type M def apply(prog: (h: self.type) => h.M): M = prog(this) }
The above code example type checks. When replacing self.type with this.type I am getting the following error:
self.type
this.type
type M is not a member of <refinement>
However, I expect self.type and this.type to be the same.
The text was updated successfully, but these errors were encountered:
See also the potentially-related #6635.
Sorry, something went wrong.
The issue still occurs with 0.18.0-bin-20190812-0ebbcff-NIGHTLY
dee65e2
Merge pull request #8436 from dotty-staging/fix-#6745
0ddafa7
Fix #6745: Fix handling of `this` in dependent function types
No branches or pull requests
minimized code
expectation
The above code example type checks. When replacing
self.type
withthis.type
I am getting the following error:However, I expect
self.type
andthis.type
to be the same.The text was updated successfully, but these errors were encountered: