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