A class method that claims to return 'self' does not actually work
FascinatedBox opened this issue · comments
FascinatedBox commented
Quoting lily_emitter.c:
if (type == lily_unit_type ||
type == lily_self_class->self_type)
lily_u16_write_2(emit->code, o_return_unit, line_num);
Attempting to use functions that return self
in a chain will crash, because Unit
is being returned instead.