Skip to content

Commit 0701fd0

Browse files
committed
small fix
1 parent 585c47e commit 0701fd0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,13 +1148,14 @@ trait Applications extends Compatibility {
11481148
if (ctx.mode.is(Mode.Pattern))
11491149
return errorTree(tree, em"invalid pattern")
11501150

1151-
val isNamed = hasNamedArg(tree.args)
1152-
val typedArgs = if (isNamed) typedNamedArgs(tree.args) else tree.args.mapconserve(typedType(_))
1153-
record("typedTypeApply")
11541151
tree.fun match
11551152
case _: untpd.SplicePattern => return typedTypeAppliedSplice(tree, pt)
11561153
case _ =>
11571154

1155+
val isNamed = hasNamedArg(tree.args)
1156+
val typedArgs = if (isNamed) typedNamedArgs(tree.args) else tree.args.mapconserve(typedType(_))
1157+
record("typedTypeApply")
1158+
11581159
typedExpr(tree.fun, PolyProto(typedArgs, pt)) match {
11591160
case fun: TypeApply if !ctx.isAfterTyper =>
11601161
val function = fun.fun

0 commit comments

Comments
 (0)