Skip to content

Commit 621befb

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,13 @@ 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
321-
errorType(i"wrong number of arguments for $fntpe: ${fn.tpe}, expected: ${fntpe.paramTypes.length}, found: ${args.length}", tree.pos)
320+
else {
321+
val z = 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+
z
326+
}
322327
case t =>
323328
errorType(i"${err.exprStr(fn)} does not take parameters", tree.pos)
324329
}

0 commit comments

Comments
 (0)