You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
obj.asInstanceOf[Matchable] match { /* assert: DisableSyntax.asInstanceOfMatchable
11
+
^^^^^^^^^^^^
12
+
asInstanceOf[Matchable] is used here to enable pattern matching on Any. Consider using the .asMatchable extension method instead for better readability.
asInstanceOf casts are disabled, use pattern matching instead
23
+
*/
24
+
25
+
// whitespace between tokens
26
+
classWhitespaceExample {
27
+
overridedefequals(obj: Any):Boolean=
28
+
obj.asInstanceOf [ Matchable ] match { /* assert: DisableSyntax.asInstanceOfMatchable
29
+
^^^^^^^^^^^^
30
+
asInstanceOf[Matchable] is used here to enable pattern matching on Any. Consider using the .asMatchable extension method instead for better readability.
0 commit comments