Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vals + existentials + package objects: "type _$1 is defined twice" #5504

Closed
scabug opened this issue Feb 19, 2012 · 2 comments
Closed

vals + existentials + package objects: "type _$1 is defined twice" #5504

scabug opened this issue Feb 19, 2012 · 2 comments

Comments

@scabug
Copy link

scabug commented Feb 19, 2012

This is in 2.9.1 as well as trunk. Has to be a val. Only happens when compiling source separately from the package object source.

// a.scala
package object foo {
  val m: List[_] = Nil
}
// b.scala
package foo

% scalac a.scala 
% scalac b.scala
error: type _$1 is defined twice
one error found
@scabug
Copy link
Author

scabug commented Feb 19, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5504?orig=1
Reporter: @paulp

@scabug
Copy link
Author

scabug commented Jul 11, 2012

@odersky said:
Will be fixed by my change to pickled flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants