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 ce65296 commit 0a1ceb9Copy full SHA for 0a1ceb9
compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala
@@ -249,7 +249,7 @@ trait QuotesAndSplices {
249
val pat1 = if (patType eq patType1) pat else pat.withType(patType1)
250
patBuf += pat1
251
}
252
- case Select(pat, _) if tree.symbol.isTypeSplice =>
+ case Select(pat: Bind, _) if tree.symbol.isTypeSplice =>
253
val sym = tree.tpe.dealias.typeSymbol
254
if sym.exists then
255
val tdef = TypeDef(sym.asType).withSpan(sym.span)
tests/pos-macros/i17039.scala
@@ -0,0 +1,7 @@
1
+import scala.quoted.*
2
+
3
+def macroImpl(using Quotes) =
4
+ val t = summon[Type[Int]]
5
+ Type.of[Int] match
6
+ case '[t.Underlying] => '{true}
7
+ case _ => '{false}
0 commit comments