During upgrade to Scala 2.12.10 in Twitter we discovered illegal cyclic reference exception failing from scalaType.member(universe.stringToTermName(field.getName)).typeSignature code in ReferencedClassFinder.
In this PR I've guarded this code with the same check as we do for getClassType.
Unfortunately I wasn't able to replicate this failure is OSS easily so added this guard without failing test.
During upgrade to Scala 2.12.10 in Twitter we discovered
illegal cyclic reference
exception failing fromscalaType.member(universe.stringToTermName(field.getName)).typeSignature
code inReferencedClassFinder
.In this PR I've guarded this code with the same check as we do for
getClassType
.Unfortunately I wasn't able to replicate this failure is OSS easily so added this guard without failing test.