File tree Expand file tree Collapse file tree 4 files changed +6
-33
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 4 files changed +6
-33
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,11 @@ object Contexts {
170170 if (implicitsCache == null )
171171 implicitsCache = {
172172 val implicitRefs : List [TermRef ] =
173- if (isClassDefContext) owner.thisType.implicitMembers
173+ if (isClassDefContext)
174+ try owner.thisType.implicitMembers
175+ catch {
176+ case ex : CyclicReference => Nil
177+ }
174178 else if (isImportContext) importInfo.importedImplicits
175179 else if (isNonEmptyScopeContext) scope.implicitDecls
176180 else Nil
Original file line number Diff line number Diff line change @@ -2976,7 +2976,7 @@ object Types {
29762976 val ex = new CyclicReference (denot)
29772977 if (! (ctx.mode is typer.Mode .CheckCyclic )) {
29782978 cyclicErrors.println(ex.getMessage)
2979- for (elem <- ex.getStackTrace take 40 )
2979+ for (elem <- ex.getStackTrace take 50 )
29802980 cyclicErrors.println(elem.toString)
29812981 }
29822982 ex
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments