We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1fbd1 commit 67c30ceCopy full SHA for 67c30ce
compiler/src/dotty/tools/dotc/transform/Staging.scala
@@ -301,12 +301,7 @@ class Staging extends MacroTransformWithImplicits {
301
*/
302
private def quotation(body: Tree, quote: Tree)(implicit ctx: Context): Tree = {
303
val isType = quote.symbol eq defn.QuotedType_apply
304
- if (body.symbol.isSplice) {
305
- // simplify `'(~x)` to `x` and then transform it
306
- val Select(splice, _) = body
307
- transform(splice)
308
- }
309
- else if (level > 0) {
+ if (level > 0) {
310
val body1 = nested(isQuote = true).transform(body)
311
// Keep quotes as trees to reduce pickled size and have a Expr.show without pickled quotes
312
if (isType) ref(defn.QuotedType_apply).appliedToType(body1.tpe.widen)
0 commit comments