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

implicit object not given singleton type during implicit resolution #4910

Closed
scabug opened this issue Aug 13, 2011 · 2 comments
Closed

implicit object not given singleton type during implicit resolution #4910

scabug opened this issue Aug 13, 2011 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Aug 13, 2011

This was defensible when the type of object foo was "object foo", but now it is foo.type and this is a bug.

class A {
  implicit object foo
  // it compiles if we uncomment this
  // implicit val bar = foo
  implicitly[foo.type]
}
// 
// ./a.scala:4: error: could not find implicit value for parameter e: A.this.foo.type
//   implicitly[foo.type]
//             ^
// one error found
scala> object foo
defined module foo

scala> def f = foo
f: foo.type
@scabug
Copy link
Author

scabug commented Aug 13, 2011

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

@scabug
Copy link
Author

scabug commented Apr 4, 2012

@paulp said:
a7f68ce32c

@scabug scabug closed this as completed Apr 4, 2012
@scabug scabug added this to the 2.10.0 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants