-
Notifications
You must be signed in to change notification settings - Fork 21
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
calling extension method with parameter list swallows error message #7907
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7907?orig=1 |
@cvogt said: |
@cvogt said: |
@retronym said: object Foo{
trait TypedType[T]
implicit def intColumnType: TypedType[Int] = null
case class ConstColumn[T](v: T){
def bar() = 5
def baz = 5
}
implicit def valueToConstColumn[T : TypedType](v: T) = ConstColumn(v)
5.copy()
5.bar()
5.baz
"test".copy()
"test".bar()
"test".baz
}
The error messages you desired appeared in 2.11.0-M6. I'm 99% sure this was due to my changes in scala/scala#3024.
But, the only constant is change, and after the fix for #3346:
No implicit error messages. But at least it is uniform. My only suggestion is to compile with
|
Expected result:
"test".bar and "test".copy() leads to (almost) identical error messages
Actual Result:
"test".bar leads to two error messages and "test".copy() only to one, which can be very surprising.
Reproduce code:
The text was updated successfully, but these errors were encountered: