Skip to content

Diagnostic for use of void #240

@jlapeyre

Description

@jlapeyre

It seems that void is correctly disallowed as an identifier. And also as a type annotation (eg in a declaration).

However the error message is

[03] Error: Expecting parameter name.
    ╭─[ /path_to_qasm/ex.qasm:17:5 ]
 17 │int void;
    │    ╰ Near this point

The error should be more in line with semantics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions