Skip to content

Commit df1a366

Browse files
committed
Try to debug weird error only on CI
1 parent b0f4e78 commit df1a366

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,12 @@ trait TypeAssigner {
317317
val ownType = fn.tpe.widen match {
318318
case fntpe: MethodType =>
319319
if (sameLength(fntpe.paramTypes, args) || ctx.phase.prev.relaxedTyping) fntpe.instantiate(args.tpes)
320-
else
320+
else {
321321
errorType(i"wrong number of arguments for $fntpe: ${fn.tpe}, expected: ${fntpe.paramTypes.length}, found: ${args.length}", tree.pos)
322+
System.err.println("####DUMP###")
323+
Thread.dumpStack
324+
System.err.println("~~~DUMP~~~")
325+
}
322326
case t =>
323327
errorType(i"${err.exprStr(fn)} does not take parameters", tree.pos)
324328
}

0 commit comments

Comments
 (0)