Closed
Description
In RustPython, this fails to parse:
from contextlib import contextmanager
@contextmanager
def ctx():
yield
with (ctx() as foo):
...
...with:
---- parser::tests::test_parse_parenthesized stdout ----
thread 'parser::tests::test_parse_parenthesized' panicked at 'called `Result::unwrap()` on an `Err` value: BaseError { error: UnrecognizedToken(As, None), location: Location { row: 7, column: 13 }, source_path: "<test>" }', compiler/parser/src/parser.rs:209:58
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Metadata
Metadata
Assignees
Labels
No labels