diff --git a/test/core_lang_auto/exceptions_else.act b/test/core_lang_auto/exceptions_else.act new file mode 100644 index 000000000..853b6de27 --- /dev/null +++ b/test/core_lang_auto/exceptions_else.act @@ -0,0 +1,13 @@ +class Foo(object): + a: str + def __init__(self): + self.a = "hello" + +actor main(env): + try: + f = Foo() + except Exception as ex: + pass + else: + print(f.a) + env.exit(0)