MutAdaptFailure

dotty.tools.dotc.cc.CaptureSet.MutAdaptFailure
case class MutAdaptFailure(cs: CaptureSet, lo: Type = ..., hi: Type = ...) extends Note

Failure indicating that a read-only capture set of a stateful type cannot be widened to an exclusive set.

Value parameters

cs

the exclusive set in question

hi

the upper type of the orginal type comparison, or NoType if not known

lo

the lower type of the orginal type comparison, or NoType if not known

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Note
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def covers(other: Note)(using Context): Boolean

If note N1 covers note N2 then N1 and N2 won't be shown together in an error message. Instead we show the note that's strictly better in terms of the "covers" partial ordering, or, if there's no strict wionner, the first added note.

If note N1 covers note N2 then N1 and N2 won't be shown together in an error message. Instead we show the note that's strictly better in terms of the "covers" partial ordering, or, if there's no strict wionner, the first added note.

Attributes

Definition Classes
def render(using Context): String

The note rendered as part of an error message

The note rendered as part of an error message

Attributes

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Should the note be shown before the actual message or after? Default is after.

Should the note be shown before the actual message or after? Default is after.

Attributes

Inherited from:
Note