Skip to content

Function tags conflict with class specifiers in forward declarations #635

@Daniel-Cortez

Description

@Daniel-Cortez

Issue description:

The following code compiles correctly:

forward public Func();

But when specifying a tag for the return value, it won't compile

forward public Tag:Func(); // error 010: invalid function or declaration

, although if the class specifier is removed, it would compile just fine:

forward Tag:Func(); // no errors

Minimal complete verifiable example (MCVE):

See above.

Workspace Information:

  • Compiler version: 3.10.10, 3.2.3664
  • Command line arguments provided (or sampctl version):
  • Operating System:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions