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 0843dd3 commit 4dfda04Copy full SHA for 4dfda04
compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
@@ -466,7 +466,7 @@ trait TypeAssigner {
466
val rsym = refinement.symbol
467
val rinfo = if (rsym is Accessor) rsym.info.resultType else rsym.info
468
if (rinfo.isError) rinfo
469
- else if (rinfo eq NoType) parent // can happen after failure in self type definition
+ else if (!rinfo.exists) parent // can happen after failure in self type definition
470
else RefinedType(parent, rsym.name, rinfo)
471
}
472
val refined = (parent.tpe /: refinements)(addRefinement)
0 commit comments