-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compilation fails due to assertion in scala.quoted.runtime.impl.QuotesImpl$reflect$Symbol$.newVal
#17432
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
Labels
area:metaprogramming:quotes
Issues related to quotes and splices
itype:bug
itype:crash
regression
This worked in a previous version but doesn't anymore
Comments
That's an intentional big fix. The macros that try to use a term symbol there are wrong. And that has actually shown in published artifacts that contain invalid tasty that tasty-query cannot read. |
I made a PR to
Error: -- Error: /build/repo/core/test/src/jam/CoreSpec.scala:102:28 ------------------
Error: 102 | val d = jam.brewWith(new WithCustomConstructors(_: WithSingleArg))
Error: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: |Exception occurred while executing macro expansion.
Error: |java.util.NoSuchElementException: head of empty list
Error: | at scala.collection.immutable.Nil$.head(List.scala:662)
Error: | at scala.collection.immutable.Nil$.head(List.scala:661)
Error: | at jam.core.JamCoreMacro$.createResultFromFunction(JamCoreMacro.scala:172)
Error: | at jam.core.JamCoreMacro$.brewFromWithImpl$$anonfun$2(JamCoreMacro.scala:32)
Error: | at jam.core.JamCoreMacro$.brew(JamCoreMacro.scala:254)
Error: | at jam.core.JamCoreMacro$.brewFromWithImpl(JamCoreMacro.scala:33)
Error: | at jam.core.JamCoreMacro$.brewWithImpl(JamCoreMacro.scala:23) |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
May 9, 2023
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
May 9, 2023
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
May 9, 2023
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
May 9, 2023
nicolasstucki
added a commit
that referenced
this issue
May 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:metaprogramming:quotes
Issues related to quotes and splices
itype:bug
itype:crash
regression
This worked in a previous version but doesn't anymore
Compiler version
3.3.1-RC1-bin-20230504-0e00420-NIGHTLY
Found in Open Community build in following projects:
Projects with last successful builds using Scala �[1m3.3.1-RC1-bin-20230427-f128063-NIGHTLY�[0m [16]:
Output
The text was updated successfully, but these errors were encountered: