Skip to content

Tweak given structural instance with template body #15424

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 1 commit into from
Jun 13, 2022

Conversation

som-snytt
Copy link
Contributor

In the tug of war between as, :, and with, the syntax was not tweaked to show that the following is not legal:

given C with:

The PR with motivation was #10538

Fixes scala/docs.scala-lang#2186

@odersky odersky merged commit 6635929 into scala:main Jun 13, 2022
@som-snytt som-snytt deleted the doc/tweak-given-with-template branch June 13, 2022 15:37
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.

Invalid production rule?
2 participants