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 {
170
170
if (implicitsCache == null )
171
171
implicitsCache = {
172
172
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
+ }
174
178
else if (isImportContext) importInfo.importedImplicits
175
179
else if (isNonEmptyScopeContext) scope.implicitDecls
176
180
else Nil
Original file line number Diff line number Diff line change @@ -2976,7 +2976,7 @@ object Types {
2976
2976
val ex = new CyclicReference (denot)
2977
2977
if (! (ctx.mode is typer.Mode .CheckCyclic )) {
2978
2978
cyclicErrors.println(ex.getMessage)
2979
- for (elem <- ex.getStackTrace take 40 )
2979
+ for (elem <- ex.getStackTrace take 50 )
2980
2980
cyclicErrors.println(elem.toString)
2981
2981
}
2982
2982
ex
Load Diff This file was deleted.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments