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 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

This comment has been minimized.

Copy link
Author

@scabug scabug commented Aug 13, 2011

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Apr 4, 2012

@paulp said:
a7f68ce32c

@scabug scabug closed this 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.