File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ class ReifyQuotes extends MacroTransformWithImplicits with InfoTransformer {
297
297
else if (sym.exists && ! sym.isStaticOwner && ! levelOK(sym))
298
298
for (errMsg <- tryHeal(tp, pos))
299
299
ctx.error(em """ access to $symStr from wrong staging level:
300
- | - the definition is at level ${levelOf(sym)},
300
+ | - the definition is at level ${levelOf.getOrElse (sym, 0 )},
301
301
| - but the access is at level $level. $errMsg""" , pos)
302
302
}
303
303
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ trait Implicits { self: Typer =>
571
571
}
572
572
573
573
def synthesizedTypeTag (formal : Type ): Tree = formal.argInfos match {
574
- case arg :: Nil =>
574
+ case arg :: Nil if ! arg.typeSymbol.is( Param ) =>
575
575
object bindFreeVars extends TypeMap {
576
576
var ok = true
577
577
def apply (t : Type ) = t match {
You can’t perform that action at this time.
0 commit comments