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.
2 parents e97ae33 + 1f4f96f commit e4c376eCopy full SHA for e4c376e
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.exists(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)
tests/run-with-compiler/quote-run-constants-extract.scala renamed to tests/pending/run-with-compiler/quote-run-constants-extract.scala
0 commit comments