Skip to content

package object member "type X" not found if "object X" exists in the same package #2200

Closed
@olafurpg

Description

@olafurpg

I found one example with type aliases and higher kinded types where scalac reports no type errors while dotc reports E006 Unbound Identifier Error cf26eeb#commitcomment-21672034

I bumped into this error while trying to compile https://github.com/johnynek/paiges with Dotty. The commands I ran were

$ scalac -version
Scala compiler version 2.12.1 -- Copyright 2002-2016, LAMP/EPFL and Lightbend, Inc.
$ scalac tests/pos/packageobjecttypealias/*.scala
$ ./bin/dotc tests/pos/packageobjecttypealias/*.scala 

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