WhyCapability

dotty.tools.dotc.cc.CheckCaptures.CaptureChecker.WhyCapability
class WhyCapability(elem: Capability) extends Note

A note that explains why a reference to a static owner is a capability

Attributes

Graph
Supertypes
class Note
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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

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

Inherited from:
Note

Attributes

Inherited from:
Note

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