Skip to content

Infix modifier is not covered by the EBNF #19668

Closed
@susliko

Description

@susliko

The following code is valid in Scala 3.3.1

object Test:
  infix def hello = 2001

But it seems to be not covered by the ebnf grammar, as "infix" is only mentioned as a soft keyword.
Probably, it should be among others in the LocalModifier

LocalModifier     ::=  ‘abstract’
                    |  ‘final’
                    |  ‘sealed’
                    |  ‘open’
                    |  ‘implicit’
                    |  ‘lazy’
                    |  ‘inline’

Metadata

Metadata

Assignees

No one assigned

    Labels

    itype:bugstat:needs triageEvery issue needs to have an "area" and "itype" label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions