Skip to content

Conflicts when defining package object and other package object is imported #884

Closed
@smarter

Description

@smarter

This currently fails:

import scala.reflect._

object `package` {
}
error: reference to package is ambiguous;
it is both imported by import reflect._
and defined subsequently in package <empty>
object `package` {
                 ^

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