File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed
compiler/src/dotty/tools/dotc/staging Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,6 @@ class CrossStageSafety extends TreeMapWithStages {
102
102
case tree : TypeDef if tree.symbol.is(Case ) && level > 0 =>
103
103
report.error(reporting.CaseClassInInlinedCode (tree), tree)
104
104
super .transform(tree)
105
- case tree @ SplicedType (splicedTree) =>
106
- transformSpliceType(splicedTree, tree)
107
105
case _ =>
108
106
super .transform(tree)
109
107
end transform
@@ -163,15 +161,6 @@ class CrossStageSafety extends TreeMapWithStages {
163
161
untpd.cpy.Splice (splice)(body1).withType(tpe1)
164
162
}
165
163
166
- private def transformSpliceType (body : Tree , splice : Select )(using Context ): Tree = {
167
- val body1 = transform(body)(using spliceContext)
168
- if ctx.reporter.hasErrors then
169
- splice
170
- else
171
- val tagRef = getQuoteTypeTags.getTagRef(splice.qualifier.tpe.asInstanceOf [TermRef ])
172
- ref(tagRef).withSpan(splice.span)
173
- }
174
-
175
164
def transformTypeAnnotationSplices (tp : Type )(using Context ) = new TypeMap {
176
165
def apply (tp : Type ): Type = tp match
177
166
case tp : AnnotatedType =>
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class HealType(pos: SrcPos)(using Context) extends TypeMap {
63
63
64
64
private def checkNotWildcardSplice (splice : TypeRef ): Unit =
65
65
splice.prefix.termSymbol.info.argInfos match
66
- case (tb : TypeBounds ) :: _ => report.error(em " Cannot splice $splice because it is a wildcard type " , pos)
66
+ case (tb : TypeBounds ) :: _ => report.error(em " Cannot stage $splice because it is an alias to a wildcard type " , pos)
67
67
case _ =>
68
68
69
69
/** Return the root of this path if it is a variable defined in a previous level.
You can’t perform that action at this time.
0 commit comments