Skip to content

compile error in expression position  #11

Description

@ModProg

A function macro in expression position requires further consideration in regard to syntax.

A solution would be to expand to {compile_error!{ "error"} dummy + expr}

this is not valid in item/stmt position though, as it creates a new scope

Solution idea

Add expr(ssion) as a flag in the manyhow attribute, this will produce the extra wrapping in {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions