Open evacchi opened 7 years ago
segfaults:
type Behavior = proc(): Effect Effect = proc(behavior: Behavior): Behavior
works if I wrap Effect in an object:
Effect
type Behavior = proc(): Effect Effect = object eff: proc(behavior: Behavior): Behavior
(discovered while rewriting this Scala snippet in Nim)
Recursive type constructions need to go through a nominal type (like object).
segfaults:
works if I wrap
Effect
in an object:(discovered while rewriting this Scala snippet in Nim)