Skip to main content

crashtest.hxsmith.features.abstracts

Abstract types: operator overloading, implicit @:from/@:to casts, array access, @:forward, inline methods.

class Abstracts(Feature)​

name​

name = 'abstracts'

summary​

summary = 'abstract types with @:op, @:from/@:to, @:arrayAccess, @:forward and inline methods'

covers​

covers = ('decl:abstract', 'EArray', 'EUnop', 'EBinop', 'ENew', 'ECall')

order​

order = 41

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)