Skip to content

Commit 75cee47

Browse files
committed
Changes as per test errors
Signed-off-by: subhramit <[email protected]>
1 parent 27f8403 commit 75cee47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ object MatchableAsInstanceOf {
2323
*/
2424

2525
// whitespace between tokens
26-
class AnotherExample {
26+
class WhitespaceExample {
2727
override def equals(obj: Any): Boolean =
28-
obj.asInstanceOf [ Matchable ] match { /* assert: DisableSyntax.asInstanceOfMatchable
28+
obj.asInstanceOf [ Matchable ] match { /* assert: DisableSyntax.asInstanceOf
2929
^^^^^^^^^^^^^
30-
asInstanceOf[Matchable] is used here to enable pattern matching on Any. Consider using the .asMatchable extension method instead for better readability.
30+
asInstanceOf casts are disabled, use pattern matching instead
3131
*/
3232
case _ => true
3333
}

0 commit comments

Comments
 (0)