module SimpleSub

Overview

This class is used as a workaround for cases where we want to have a struct field that otherwise would break the rule that a struct cannot contain itself.

Basically, this lets us sort of pretend of have referential transparency by wrapping a struct in a class that forwards all methods to the struct.

Defined in:

simple_sub/compact_type.cr
simple_sub/error.cr
simple_sub/struct_ref.cr
simple_sub/term.cr
simple_sub/typer.cr