Skip to content

Local imports occasionally don't work #15468

Closed
@japgolly

Description

@japgolly

Compiler version

3.1.2

Minimized code

object Test {
  val s = ""
  import s.{length => x, size => y}
  locally(x) // ok
  locally(y) // Not found: y
}

Output

[error] 5 |  locally(y) // Not found: y
[error]   |          ^
[error]   |          Not found: y
[error] one error found

Expectation

It should compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions