enum E A B class X var _e as E? get e as E if _e is nil, _e = E.A return _e to ! def main assert .e == E.A