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 b33f604 commit 795796dCopy full SHA for 795796d
src/dotty/tools/dotc/config/Printers.scala
@@ -27,4 +27,5 @@ object Printers {
27
val incremental = noPrinter
28
val config = noPrinter
29
val transforms = noPrinter
30
+ val cyclicErrors = noPrinter
31
}
src/dotty/tools/dotc/core/Types.scala
@@ -2864,7 +2864,11 @@ object Types {
2864
object CyclicReference {
2865
def apply(denot: SymDenotation)(implicit ctx: Context): CyclicReference = {
2866
val ex = new CyclicReference(denot)
2867
- if (!(ctx.mode is typer.Mode.CheckCyclic)) ex.printStackTrace()
+ if (!(ctx.mode is typer.Mode.CheckCyclic)) {
2868
+ cyclicErrors.println(ex.getMessage)
2869
+ for (elem <- ex.getStackTrace take 40)
2870
+ cyclicErrors.println(elem.toString)
2871
+ }
2872
ex
2873
2874
0 commit comments