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.
1 parent 836ed97 commit a9b0577Copy full SHA for a9b0577
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -353,7 +353,8 @@ object Types {
353
*
354
*/
355
def isErroneous(using Context): Boolean =
356
- widen.existsPart(_.isError, forceLazy = false)
+ try widen.existsPart(_.isError, forceLazy = false)
357
+ catch case ex: TypeError => false
358
359
/** Is this type unusable for implicit search or overloading resolution
360
* since it has embedded errors that can match anything? This is weaker and more
0 commit comments