Skip to content

Commit 7b733a4

Browse files
subhramitbjaglin
andauthored
Update scalafix-tests/input/src/main/scala-3/test/disableSyntax/MatchableDisableSyntax.scala
Co-authored-by: Brice Jaglin <[email protected]>
1 parent d13abca commit 7b733a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalafix-tests/input/src/main/scala-3/test/disableSyntax/MatchableDisableSyntax.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object MatchableAsInstanceOf {
88
class Example {
99
override def equals(obj: Any): Boolean =
1010
obj.asInstanceOf[Matchable] match { /* assert: DisableSyntax.asInstanceOfMatchable
11-
^^^^^^^^^^^^^
11+
^^^^^^^^^^^^
1212
asInstanceOf[Matchable] is used here to enable pattern matching on Any. Consider using the .asMatchable extension method instead for better readability.
1313
*/
1414
case that: Example => true

0 commit comments

Comments
 (0)