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
covariant
(,
StorageClass* pstc = null
,
bool cppCovariant = false
)

Parameters

t Type

type 'this' is covariant with

pstc StorageClass*

if not null, store STCxxxx which would make it covariant

cppCovariant bool

true if extern(C++) function types should follow C++ covariant rules

Return Value

Type: Covariant

An enum value of either Covariant.yes or a reason it's not covariant.

Meta