PreciseConstrained

dotty.tools.dotc.typer.ProtoTypes.PreciseConstrained

An extractor for Singleton and Precise witness types.

 Singleton { type Self = T }     returns Some(T, true)
 Precise { type Self = T }       returns Some(T, false)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(tp: Type)(using Context): Option[(Type, Boolean)]