Skip to content

aliasing gets less precise type than Scala #2198

Closed
@liufengyun

Description

@liufengyun

In Scala, Nil gets the type collection.immutable.Nil.type, but in Dotty it gets scala.collection.immutable.Nil$.

object Test {
  val Nil = scala.collection.immutable.Nil
}

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