Skip to content

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

Merged
merged 8 commits into from
Dec 3, 2020
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 2, 2020

Based on #10598

Comment on lines +249 to 252
given PackageClauseTypeTest: TypeTest[Tree, PackageClause] = PackageClauseTypeTestImpl

/** Implementation of `PackageClauseTypeTest` */
protected val PackageClauseTypeTestImpl: TypeTest[Tree, PackageClause]
Copy link
Member

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:

Suggested change
given PackageClauseTypeTest: TypeTest[Tree, PackageClause] = PackageClauseTypeTestImpl
/** Implementation of `PackageClauseTypeTest` */
protected val PackageClauseTypeTestImpl: TypeTest[Tree, PackageClause]
given PackageClauseTypeTest: TypeTest[Tree, PackageClause]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that supported now?

@nicolasstucki nicolasstucki merged commit e0c6e6f into scala:master Dec 3, 2020
@nicolasstucki nicolasstucki deleted the drop-old-given-syntax branch December 3, 2020 07:46
@nicolasstucki
Copy link
Contributor

@odersky I merged the current version to avoid conflicts with other PRs.

@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants