-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Drop old given syntax #10613
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
Drop old given syntax #10613
Conversation
given PackageClauseTypeTest: TypeTest[Tree, PackageClause] = PackageClauseTypeTestImpl | ||
|
||
/** Implementation of `PackageClauseTypeTest` */ | ||
protected val PackageClauseTypeTestImpl: TypeTest[Tree, PackageClause] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you could directly use abstract givens for this now:
given PackageClauseTypeTest: TypeTest[Tree, PackageClause] = PackageClauseTypeTestImpl | |
/** Implementation of `PackageClauseTypeTest` */ | |
protected val PackageClauseTypeTestImpl: TypeTest[Tree, PackageClause] | |
given PackageClauseTypeTest: TypeTest[Tree, PackageClause] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that supported now?
@odersky I merged the current version to avoid conflicts with other PRs. |
Based on #10598