IncludeFailure

dotty.tools.dotc.cc.CaptureSet.IncludeFailure
case class IncludeFailure(cs: CaptureSet, elem: Capability, levelError: Boolean = ...) extends Note, Showable

Failure indicating that elem cannot be included in cs

Attributes

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

Members list

Value members

Concrete methods

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

An include failure F1 covers another include failure F2 unless one of the following two conditons holds:

An include failure F1 covers another include failure F2 unless one of the following two conditons holds:

  1. F2 strictly subsumes F1, which means they describe the same capture sets and the element in F2 is more specific than the element in F1.
  2. Both F1 and F2 are the empty set, but only F2 is an empty set synthesized when comparing types with different box status

Attributes

Definition Classes
def leading(msg: String)(using Context): String
def render(using Context): String

The note rendered as part of an error message

The note rendered as part of an error message

Attributes

override def showAsPrefix(using Context): Boolean

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

Definition Classes
override def toText(printer: Printer): Text

The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.

The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.

Attributes

Definition Classes
def trailing(msg: String)(using Context): String

Inherited methods

def fallbackToText(printer: Printer): Text

A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

Attributes

Inherited from:
Showable

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
def show(using Context): String

The string representation of this showable element.

The string representation of this showable element.

Attributes

Inherited from:
Showable
def showIndented(margin: Int)(using Context): String

The string representation with each line after the first one indented by the given given margin (in spaces).

The string representation with each line after the first one indented by the given given margin (in spaces).

Attributes

Inherited from:
Showable
def showSummary(depth: Int = ...)(using Context): String

The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

Attributes

Inherited from:
Showable