Skip to content

Commit

Permalink
Fix typo in warning messages
Browse files Browse the repository at this point in the history
Co-authored-by: Natsu Kagami <[email protected]>
  • Loading branch information
hamzaremmal and natsukagami authored Oct 15, 2024
1 parent a9cc783 commit 9eb4b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/steps/annotation/toString.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final class toString extends MacroAnnotation:
val toStringSym = Symbol.requiredMethod("java.lang.Object.toString")
tree match
case _: ClassDef if toStringSym.overridingSymbol(tree.symbol).exists =>
report.warning(s"@toString is not necessary since hashcode is defined in ${tree.symbol}")
report.warning(s"@toString is not necessary since toString is defined in ${tree.symbol}")
List(tree)
case cls: ClassDef if cls.symbol.flags.is(Flags.Trait) =>
report.error(s"@toString is not supported in traits")
Expand Down

0 comments on commit 9eb4b45

Please sign in to comment.