File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -733,10 +733,10 @@ object TreeChecker {
733733 if nowDefinedSyms.contains(tree.symbol.maybeOwner) then
734734 super .assertDefined(tree)
735735
736- override def checkNoOrphans (tp0 : Type , tree : untpd.Tree = untpd.EmptyTree )(using Context ): Type =
737- // TODO: Is this fails on tests/run-macros/quoted-ToExpr-derivation-macro.
738- // Is this a bug?
739- tp0 // Do not check for orphans
736+ // override def checkNoOrphans(tp0: Type, tree: untpd.Tree = untpd.EmptyTree)(using Context): Type =
737+ // // TODO: Is this fails on tests/run-macros/quoted-ToExpr-derivation-macro.
738+ // // Is this a bug?
739+ // tp0 // Do not check for orphans
740740 }
741741
742742 def checkMacroGeneratedTree (original : tpd.Tree , expansion : tpd.Tree )(using Context ): Unit =
@@ -753,19 +753,19 @@ object TreeChecker {
753753 catch
754754 case err : java.lang.AssertionError =>
755755 report.error(
756- em """ Malformed tree was found while expanding macro with -Xcheck-macros.
757- |The tree does not conform to the compiler's tree invariants.
758- |
759- |Macro was:
760- | ${original}
761- |
762- |The macro returned:
763- | ${expansion}
764- |
765- |Error:
766- | ${err.getMessage}
767- |
768- | """ ,
756+ s """ Malformed tree was found while expanding macro with -Xcheck-macros.
757+ |The tree does not conform to the compiler's tree invariants.
758+ |
759+ |Macro was:
760+ | ${scala.quoted.runtime.impl. QuotesImpl .showDecompiledTree( original) }
761+ |
762+ |The macro returned:
763+ | ${scala.quoted.runtime.impl. QuotesImpl .showDecompiledTree( expansion) }
764+ |
765+ |Error:
766+ | ${err.getMessage}
767+ |
768+ | """ ,
769769 original
770770 )
771771
You can’t perform that action at this time.
0 commit comments