File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1148,13 +1148,14 @@ trait Applications extends Compatibility {
1148
1148
if (ctx.mode.is(Mode .Pattern ))
1149
1149
return errorTree(tree, em " invalid pattern " )
1150
1150
1151
- val isNamed = hasNamedArg(tree.args)
1152
- val typedArgs = if (isNamed) typedNamedArgs(tree.args) else tree.args.mapconserve(typedType(_))
1153
- record(" typedTypeApply" )
1154
1151
tree.fun match
1155
1152
case _ : untpd.SplicePattern => return typedTypeAppliedSplice(tree, pt)
1156
1153
case _ =>
1157
1154
1155
+ val isNamed = hasNamedArg(tree.args)
1156
+ val typedArgs = if (isNamed) typedNamedArgs(tree.args) else tree.args.mapconserve(typedType(_))
1157
+ record(" typedTypeApply" )
1158
+
1158
1159
typedExpr(tree.fun, PolyProto (typedArgs, pt)) match {
1159
1160
case fun : TypeApply if ! ctx.isAfterTyper =>
1160
1161
val function = fun.fun
You can’t perform that action at this time.
0 commit comments