Dotty Documentation


class CheckRealizable
extends Object

Compute realizability status

[-] Constructors

CheckRealizable ( )
CheckRealizable ( implicit ctx: Context )

[-] Members

[+] private val checkedFields : Set [ Symbol ]

A set of all fields that have already been checked. Used to avoid infinite recursions when analyzing recursive types.

[+] private implicit val ctx : Context
[+] private def boundsRealizability ( tp: Type ) : Realizability

Realizable if tp has good bounds, a HasProblem... instance pointing to a bad bounds member otherwise. "Has good bounds" means:

  • all type members have good bounds
  • all base types are class types, and if their arguments are wildcards they have good bounds.
  • base types do not appear in multiple instances with different arguments. (depending on the simplification scheme for AndTypes employed, this could also lead to base types with bad bounds).
[+] private def isLateInitialized ( sym: Symbol ) : Boolean

Is symbol's definitition a lazy val? (note we exclude modules here, because their realizability is ensured separately)

[+] private def memberRealizability ( tp: Type ) : Realizability
[+] def realizability ( tp: Type ) : Realizability

The realizability status of given type tp