Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
Fix capitalisation in implicitAmbiguous error
Browse files Browse the repository at this point in the history
  • Loading branch information
puffnfresh committed Sep 8, 2014
1 parent 997c9d4 commit 8b730e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/typechecker/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ trait Implicits {

object ImplicitNotFoundMsg extends ImplicitAnnotationMsg(_.implicitNotFoundMsg, ImplicitNotFoundClass, "implicitNotFound")

object ImplicitAmbiguousMsg extends ImplicitAnnotationMsg(_.implicitAmbiguousMsg, ImplicitAmbiguousClass, "implicitAMbiguous")
object ImplicitAmbiguousMsg extends ImplicitAnnotationMsg(_.implicitAmbiguousMsg, ImplicitAmbiguousClass, "implicitAmbiguous")

class Message(sym: Symbol, msg: String, annotationName: String) {
// http://dcsobral.blogspot.com/2010/01/string-interpolation-in-scala-with.html
Expand Down
2 changes: 1 addition & 1 deletion test/files/neg/implicit-ambiguous-invalid.check
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
implicit-ambiguous-invalid.scala:5: warning: Invalid implicitAmbiguous message for method neqAmbig1 in object Test:
The type parameter B referenced in the message of the @implicitAMbiguous annotation is not defined by method neqAmbig1.
The type parameter B referenced in the message of the @implicitAmbiguous annotation is not defined by method neqAmbig1.
implicit def neqAmbig1[A] : A =!= A = null
^
error: No warnings can be incurred under -Xfatal-warnings.
Expand Down

0 comments on commit 8b730e6

Please sign in to comment.