We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ed24d commit 86450c3Copy full SHA for 86450c3
compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala
@@ -81,7 +81,7 @@ object ErrorReporting {
81
if (tree.tpe.widen.exists)
82
i"${exprStr(tree)} does not take ${kind}parameters"
83
else {
84
- new FatalError("").printStackTrace()
+ if (ctx.settings.Ydebug.value) new FatalError("").printStackTrace()
85
i"undefined: $tree # ${tree.uniqueId}: ${tree.tpe.toString} at ${ctx.phase}"
86
}
87
0 commit comments