We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97ae33 commit 35a4344Copy full SHA for 35a4344
compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -150,7 +150,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
150
}
151
val (tycon, args) = decompose(tree)
152
tycon.tpe.widen match {
153
- case tp: PolyType =>
+ case tp: PolyType if args.contains(isNamedArg) =>
154
val (namedArgs, otherArgs) = args.partition(isNamedArg)
155
val args1 = reorderArgs(tp.paramNames, namedArgs.asInstanceOf[List[NamedArg]], otherArgs)
156
TypeApply(tycon, args1).withPos(tree.pos).withType(tree.tpe)
0 commit comments