Skip to content

object defined in Selectable has undefined type #9667

Closed
@bishabosha

Description

@bishabosha

Minimized code

def foo = new reflect.Selectable { object Foo }

Output

-- Error: objectinselectable.scala:1:4 ----------------------------
1 |def foo = new reflect.Selectable { object Foo }
  |^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |{...}.this.Foo$ is not defined in inferred type {z1 => reflect.Selectable{Foo: z1.Foo$}}

Expectation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions