Skip to content

Conversation

KacperFKorban
Copy link
Contributor

Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

You need to update two suites:
[error] scala.meta.tests.trees.ReflectionSuite
[error] scala.meta.tests.api.SurfaceSuite

And maybe we should add this as a dialect option?


import scala.meta._

class LanguageExtensionsSuite extends BaseDottySuite {
Copy link
Collaborator

Choose a reason for hiding this comment

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

i don't know if we need a separate suite for just one modifier and 4 tests. isn't there already a suitable one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created a new suite, so that we can put all the other new language extension features there. Is that ok, or should I move it somewhere?
There are quite a few extensions missing here, so the test suite can fill up quickly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

would you like to add these tests, too? 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I meant the ones that aren't implemented here yet.

e.g.

  • into
  • namedTuples
  • captureChecking
  • namedTypeArguments
  • etc.

val allowBinaryLiterals: Boolean
val allowBinaryLiterals: Boolean,
// Are tracked parameters allowed? docs: https://dotty.epfl.ch/docs/reference/experimental/modularity.html
val allowTrackedParameters: Boolean
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm sorry, is this feature part of an approved SIP, or released scala version? adding experimental stuff that may or may not be adopted is premature otherwise.

we have not yet implemented 3.4 parsing so I would start with that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is available under an experimental language flag in 3.5.0.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be safe to this to ScalaFuture as it will not be too much problem to remove it in the future. I would agree in terms of bigger features, but here it's rather safe.

I can follow up with 3.4.0 and 3.5.0 dialects later on.

Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM from me

@kitbellew are you ok with merging? I can follow up with making sure that the dialects are up to date.

val allowBinaryLiterals: Boolean
val allowBinaryLiterals: Boolean,
// Are tracked parameters allowed? docs: https://dotty.epfl.ch/docs/reference/experimental/modularity.html
val allowTrackedParameters: Boolean
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be safe to this to ScalaFuture as it will not be too much problem to remove it in the future. I would agree in terms of bigger features, but here it's rather safe.

I can follow up with 3.4.0 and 3.5.0 dialects later on.

@KacperFKorban KacperFKorban marked this pull request as ready for review September 17, 2024 09:48
@kitbellew
Copy link
Collaborator

LGTM from me

@kitbellew are you ok with merging? I can follow up with making sure that the dialects are up to date.

overall, looks ok, but the code is not properly formatted yet 🙂

@KacperFKorban
Copy link
Contributor Author

@kitbellew I just noticed it too. I pushed a new update right now 😅

@kitbellew kitbellew merged commit 7875e14 into scalameta:main Sep 17, 2024
24 checks passed
@KacperFKorban KacperFKorban deleted the tracked branch September 17, 2024 10:45
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