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

spurious errors when searching an implicit arg for methods that have erroneous signature #5801

Closed
scabug opened this issue May 16, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

commented May 16, 2012

import scala.sth

object Test extends App {
  def foo(a: Int)(implicit b: sth.Sth): Unit = {}
  foo(2)
}

gives:

ambiguity2.scala:1: error: object sth is not a member of package scala
import scala.sth
       ^
ambiguity2.scala:4: error: not found: value sth
  def foo(a: Int)(implicit b: sth.Sth): Unit = {}
                              ^
ambiguity2.scala:5: error: ambiguous implicit values:
 both value StringCanBuildFrom in object Predef of type => scala.collection.generic.CanBuildFrom[String,Char,String]
 and method conforms in object Predef of type [A]=> <:<[A,A]
 match expected type <error>
  foo(2)
     ^
three errors found

It shouldn't report the last one.

@scabug

This comment has been minimized.

Copy link
Author

commented May 16, 2012

@scabug

This comment has been minimized.

Copy link
Author

commented May 21, 2012

@hubertp said:
Fixed in 7490250efe8e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.