Skip to content

Commit

Permalink
Make implicitNotFound and implicitAmbiguous be ConstantAnnotations
Browse files Browse the repository at this point in the history
This makes it clearer that the custom error message must be a literal value.
  • Loading branch information
BalmungSan authored and SethTisue committed Mar 16, 2021
1 parent 93ec1f0 commit 721dcdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/scala/annotation/implicitAmbiguous.scala
Expand Up @@ -39,4 +39,4 @@ package scala.annotation
* }}}
*/
@meta.getter
final class implicitAmbiguous(msg: String) extends scala.annotation.StaticAnnotation
final class implicitAmbiguous(msg: String) extends scala.annotation.ConstantAnnotation
2 changes: 1 addition & 1 deletion src/library/scala/annotation/implicitNotFound.scala
Expand Up @@ -53,4 +53,4 @@ package scala.annotation
* ^
* </pre>
*/
final class implicitNotFound(msg: String) extends scala.annotation.StaticAnnotation {}
final class implicitNotFound(msg: String) extends scala.annotation.ConstantAnnotation

0 comments on commit 721dcdc

Please sign in to comment.