Skip to content

Found NameError case that is not properly handled #1212

@cmarshall108

Description

@cmarshall108

The result below is from RustPython:

>>>>> def t() -> void:
.....     pass
..... 
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

The result below is from CPython 3:

>>> def t() -> void:
...     pass
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'void' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions