Skip to content

Mis-placed annotation does not generate a syntax error #317

@apblack

Description

@apblack

Look at this (erroneous) source code:

method dialectError is confidential (aString) {
    errormessages.CompilationError.raise (aString) with (sourcePosition.emptyRange)
}

I added the annotation is confidential in the wrong place. This did not raise a syntax error, but only a name resolution error when aString was considered to be undefined. It seems as though the parameter list (aString) was completely ignored.

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