Skip to content
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

Use [_p: P] instead of [_: P] for Scala 3 compatibility #267

Merged
merged 2 commits into from
Dec 27, 2022

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Dec 27, 2022

Let's see if we can shrink #262 so it's easier to review by merging first the easy changes and rebasing, so the diff is smaller.

These examples compiled in Scala 2.13.4 (the Scala version used in
com-lihaoyi#262) but don't compile in
Scala 2.13.6
I didn't understand the real reason, but helped the compiler by adding
some explicit type annotations
@lolgab lolgab marked this pull request as ready for review December 27, 2022 10:43
@lolgab lolgab merged commit 8927803 into com-lihaoyi:master Dec 27, 2022
@lolgab lolgab deleted the scala3-compat-P branch December 27, 2022 10:43
@davidrwood
Copy link

Is this essentially competing with #266 ?

@davidrwood davidrwood mentioned this pull request Jan 5, 2023
@davidrwood
Copy link

Ah! I see now that it's not. I hadn't noticed you'd merged it already.

@lolgab
Copy link
Member Author

lolgab commented Feb 8, 2023

I wanted to help the migration by merging the easy syntactic changes first so the main PR becomes smaller and smaller.

lihaoyi added a commit to ajrnz/fastparse that referenced this pull request Feb 28, 2023
@lefou lefou added this to the 3.0.0 milestone Mar 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.

3 participants