We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3725e5 + 5c3ef81 commit bf026adCopy full SHA for bf026ad
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -354,7 +354,8 @@ object Types {
354
*
355
*/
356
def isErroneous(using Context): Boolean =
357
- widen.existsPart(_.isError, forceLazy = false)
+ try widen.existsPart(_.isError, forceLazy = false)
358
+ catch case ex: TypeError => true
359
360
/** Is this type unusable for implicit search or overloading resolution
361
* since it has embedded errors that can match anything? This is weaker and more
0 commit comments