Skip to main content

crashtest.hxsmith.features.generics

Generic classes and functions: Box<T>, Pair<A, B>, @:generic monomorphisation, constrained type parameters.

class Generics(Feature)​

name​

name = 'generics'

summary​

summary = 'Box<T>, Pair<A,B>, @:generic classes/functions, type-parameter constraints, generic methods'

covers​

covers = ('decl:generic', 'ENew', 'ECall', 'ECheckType', 'FProp', 'FKArrow')

order​

order = 42

declare​

def declare(g: Gen) -> None

types​

def types(g: Gen, depth: int)

show​

def show(g: Gen, ty: Ty, expr: str)

exprs​

def exprs(g: Gen, ty: Ty)

stmts​

def stmts(g: Gen)