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 f14d22c commit f8f47c2Copy full SHA for f8f47c2
compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala
@@ -328,8 +328,8 @@ trait QuotesAndSplices {
328
val quoted0 = desugar.quotedPattern(quoted, untpd.TypedSplice(TypeTree(quotedPt)))
329
val quoteCtx = quoteContext.addMode(Mode.QuotedPattern)
330
val quoted1 =
331
- if quoted.isType then typedType(quoted0, quotedPt)(quoteCtx)
332
- else typedExpr(quoted0, quotedPt)(quoteCtx)
+ if quoted.isType then typedType(quoted0, WildcardType)(quoteCtx)
+ else typedExpr(quoted0, WildcardType)(quoteCtx)
333
334
val (typeBindings, shape, splices) = splitQuotePattern(quoted1)
335
0 commit comments