-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AssertionError: assertion failed: unresolved symbols: anonymous class Object with #14373
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
Milestone
Comments
Minimizedimport scala.quoted._
trait Foo
object Foo {
def apply_impl(using Quotes): Expr[Any] = '{
new Foo {
private def foo: String = ???
def bar: Any = ${ '{ foo }; ??? }
}
}
} Workaround- private def foo: String = ???
+ def foo: String = ??? |
The issue is probably came from #13547 |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Feb 7, 2022
Inline accessor was generated correctly and added at the end of the class. Then transforming `bar` the `foo$inline` method was not collected yet. Fixes scala#14373
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Feb 21, 2022
Inline accessor was generated correctly and added at the end of the class. Then transforming `bar` the `foo$inline` method was not collected yet. Fixes scala#14373
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Feb 25, 2022
Inline accessor was generated correctly and added at the end of the class. Then transforming `bar` the `foo$inline` method was not collected yet. Fixes scala#14373
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Feb 28, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 4, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 14, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Mar 24, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 11, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 19, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 19, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 19, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
michelou
pushed a commit
to michelou/scala3
that referenced
this issue
Apr 25, 2022
Separate the logic that creates holes in quotes from the logic that pickles the quotes. Holes are created in the `Splicer` phase and the result of the transformation can be `-Ycheck`ed. Now, the `PickleQuotes` phase only needs to extract the contents of the holes, pickle the quote and put them into a call to `unpickleExprV2`/`unpickleTypeV2`. We add `unpickleExprV2` to support some optimization in the encoding of the pickled quote. Namely we removed an unnecessary lambda from the arguments of the hole passed into the contents of the hole. By not changing `unpickleExpr` the current compiler will be able to handle the old encoding in binaries compiled with older compilers. The `unpickleTypeV2` is just a version of `unpickleType` that does not take the `termHole` parameter which is always `null`. With `-Yscala-relese` 3.0 or 3.1, the compiler will generate calls to the old `unpickleExpr`/`unpickleType`. Fixes scala#8100 Fixes scala#12440 Fixes scala#13563 Fixes scala#14337 Fixes scala#14373 Closes scala#13732
# for free
to join this conversation on GitHub.
Already have an account?
# 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
NG
OK
Minimized code
Output (click arrow to expand)
Note
The text was updated successfully, but these errors were encountered: