Skip to content

Field named StringContext followed by s"" does not compile #12789

Closed as not planned
@izzyreal

Description

@izzyreal

Reproduction steps

Scala version: 2.13.10

scala> class Foo { val StringContext = 42; s"" }

Problem

The above code does not compile in 2.13.10 (though it compiles in 3.2.2). If you change the name of the field it compiles in 2.13.10.

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