Skip to content

Ambiguity: a function declaration with a type that (textually) consists of a modifier and a type #2577

@rodinaarssen

Description

@rodinaarssen

Describe the bug

The signature of a function declaration, defined in the Signature nonterminal, contains a type, optionally prepended by modifiers (java, default, test). A type that (textually) consists of a modifier and a type yields an ambiguous parse.

To Reproduce

parse(#Signature, "testint foo()")

Desktop (please complete the following information):

  • VS Code 0.13.0

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