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 8c65097 commit 34bfc22Copy full SHA for 34bfc22
compiler/src/dotty/tools/dotc/quoted/PickledQuotes.scala
@@ -204,7 +204,11 @@ object PickledQuotes {
204
new TreeTraverser {
205
def traverse(tree: Tree)(using Context): Unit =
206
tree match
207
- case _: DefTree => cacheable = false
+ case _: DefTree =>
208
+ if !tree.symbol.hasAnnotation(defn.QuotedRuntime_SplicedTypeAnnot)
209
+ && !tree.symbol.hasAnnotation(defn.QuotedRuntimePatterns_patternTypeAnnot)
210
+ then
211
+ cacheable = false
212
case _ =>
213
traverseChildren(tree)
214
}.traverse(tree)
0 commit comments