Skip to content

Commit 2019292

Browse files
fix compiling ScalaRunTime.scala
1 parent 84590eb commit 2019292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
826826
}
827827

828828
def typedAppliedTypeTree(tree: untpd.AppliedTypeTree)(implicit ctx: Context): AppliedTypeTree = track("typedAppliedTypeTree") {
829-
val tpt1 = typed(tree.tpt)
829+
val tpt1 = typed(tree.tpt)(ctx retractMode Mode.Pattern)
830830
val argPts =
831831
if (ctx.mode is Mode.Pattern) tpt1.tpe.typeParams.map(_.info)
832832
else tree.args.map(_ => WildcardType)

0 commit comments

Comments
 (0)