File tree 3 files changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/transform
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package dotty.tools
2
2
package dotc
3
3
package transform
4
4
5
+ import config .Printers .checks as printer
5
6
import core .Names .Name
6
7
import core .DenotTransformers .*
7
8
import core .SymDenotations .*
@@ -445,7 +446,7 @@ object TreeChecker {
445
446
res
446
447
catch case NonFatal (ex) if ! ctx.run.enrichedErrorMessage =>
447
448
val treeStr = tree.show(using ctx.withPhase(ctx.phase.prev.megaPhase))
448
- println(ctx.run.enrichErrorMessage(s " exception while retyping $treeStr of class ${tree.className} # ${tree.uniqueId}" ))
449
+ printer. println(ctx.run.enrichErrorMessage(s " exception while retyping $treeStr of class ${tree.className} # ${tree.uniqueId}" ))
449
450
throw ex
450
451
}
451
452
@@ -844,7 +845,7 @@ object TreeChecker {
844
845
// We want make sure that transparent inline macros are checked in the same way that
845
846
// non transparent macros are, so we try to prepare a context which would make
846
847
// the checks behave the same way for both types of macros.
847
- //
848
+ //
848
849
// E.g. Different instances of skolem types are by definition not able to be a subtype of
849
850
// one another, however in practice this is only upheld during typer phase, and we do not want
850
851
// it to be upheld during this check.
Original file line number Diff line number Diff line change 8
8
|Parents in tree: [trait Serializer]
9
9
|
10
10
| at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
11
- | at dotty.tools.dotc.transform.TreeChecker$.checkParents(TreeChecker.scala:209 )
11
+ | at dotty.tools.dotc.transform.TreeChecker$.checkParents(TreeChecker.scala:210 )
12
12
| at scala.quoted.runtime.impl.QuotesImpl$reflect$ClassDef$.module(QuotesImpl.scala:257)
13
13
| at scala.quoted.runtime.impl.QuotesImpl$reflect$ClassDef$.module(QuotesImpl.scala:256)
14
14
| at Macros$.makeSerializer(Macro.scala:25)
Original file line number Diff line number Diff line change 8
8
|Parents in tree: [class Object, trait Serializer, trait Foo]
9
9
|
10
10
| at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
11
- | at dotty.tools.dotc.transform.TreeChecker$.checkParents(TreeChecker.scala:209 )
11
+ | at dotty.tools.dotc.transform.TreeChecker$.checkParents(TreeChecker.scala:210 )
12
12
| at scala.quoted.runtime.impl.QuotesImpl$reflect$ClassDef$.module(QuotesImpl.scala:257)
13
13
| at scala.quoted.runtime.impl.QuotesImpl$reflect$ClassDef$.module(QuotesImpl.scala:256)
14
14
| at Macros$.makeSerializer(Macro.scala:27)
You can’t perform that action at this time.
0 commit comments