Skip to content

Commit 02714df

Browse files
committed
Allow top-level splices for types
1 parent e8df9a0 commit 02714df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
228228
case tp: NamedType if tp.symbol.isSplice =>
229229
if (inQuote) outer.checkType(pos).foldOver(acc, tp)
230230
else {
231-
spliceOutsideQuotes(pos)
231+
if (tp.isTerm) spliceOutsideQuotes(pos)
232232
tp
233233
}
234234
case tp: NamedType =>

0 commit comments

Comments
 (0)