File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,11 @@ abstract class TreeMapWithStages(@constructorOnly ictx: Context) extends TreeMap
46
46
/** Localy defined symbols seen so far by `StagingTransformer.transform` */
47
47
protected def localSymbols : List [Symbol ] = enteredSyms
48
48
49
- /** Enter staging level of symbol defined by `tree`, if applicable. */
49
+ /** Enter staging level of symbol defined by `tree` */
50
50
private def markSymbol (sym : Symbol )(implicit ctx : Context ): Unit =
51
- if ((sym.isClass || sym.maybeOwner.isTerm) && ! levelOfMap.contains(sym)) {
51
+ if (! levelOfMap.contains(sym))
52
52
levelOfMap(sym) = level
53
53
enteredSyms = sym :: enteredSyms
54
- }
55
54
56
55
/** Enter staging level of symbol defined by `tree`, if applicable. */
57
56
private def markDef (tree : Tree )(implicit ctx : Context ): Unit = tree match {
Original file line number Diff line number Diff line change
1
+ import scala .quoted ._
2
+
3
+ def f (using QuoteContext ): Unit =
4
+ ' { type T [X ] = List [X ] }
You can’t perform that action at this time.
0 commit comments