Type.covariant

Covariant means that 'this' can substitute for 't', i.e. a pure function is a match for an impure type.

class Type
final
int
covariant
(,
StorageClass* pstc = null
,
bool fix17349 = true
)

Parameters

t
Type: Type

type 'this' is covariant with

pstc

if not null, store STCxxxx which would make it covariant

fix17349
Type: bool

Return Value

Type: int

0 types are distinct 1 this is covariant with t 2 arguments match as far as overloading goes, but types are not covariant 3 cannot determine covariance because of forward references *pstc STCxxxx which would make it covariant

Meta