Skip to content

Commit bb3efab

Browse files
fix compiling ScalaRunTime.scala
1 parent a3cb6b0 commit bb3efab

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): Tree = track("typedAppliedTypeTree") {
829-
val tpt1 = typed(tree.tpt)
829+
val tpt1 = typed(tree.tpt)(ctx retractMode Mode.Pattern)
830830
val tparams = tpt1.tpe.typeParams
831831
var args = tree.args
832832
if (tparams.isEmpty) {

0 commit comments

Comments
 (0)