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 5ec51bc commit 116fdfcCopy full SHA for 116fdfc
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -4259,7 +4259,13 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
4259
val tm = new TypeMap:
4260
def apply(t: Type) = t match
4261
case fp@FunProto(args, resType) =>
4262
- fp.derivedFunProto(args.map(a => dummyArg(a.typeOpt).withSpan(a.span)), mapOver(resType))
+ fp.derivedFunProto(
4263
+ args.map(arg =>
4264
+ if(arg.isInstanceOf[untpd.TypedSplice]) arg
4265
+ else dummyArg(arg.typeOpt).withSpan(arg.span)
4266
+ ),
4267
+ mapOver(resType)
4268
+ )
4269
case _ =>
4270
mapOver(t)
4271
val resultAlreadyConstrained = pt1.isInstanceOf[MethodOrPoly]
0 commit comments