Skip to content

Root package priority is wrong #12566

Closed as not planned
Closed as not planned
@som-snytt

Description

@som-snytt

Reproduction steps

Scala version: 2.13.8

Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 17.0.2).
Type in expressions for evaluation. Or try :help.

scala> object sun { val x = 42 }
object sun

scala> import sun.x
import sun.x

scala> import jdk.CollectionConverters._
                  ^
       error: object CollectionConverters is not a member of package jdk

At scala/scala3#14781

Problem

Scala 3 agrees about jdk, but the REPLs disagree about sun.

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