File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/scala/runtime/stdLibPatches Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ object Predef:
5656 /** Enables an expression of type `T|Null`, where `T` is a subtype of `AnyRef`, to be checked for `null`
5757 * using `eq` rather than only `==`. This is needed because `Null` no longer has
5858 * `eq` or `ne` methods, only `==` and `!=` inherited from `Any`. */
59- inline def eq (inline y : AnyRef | Null ): Boolean =
59+ inline infix def eq (inline y : AnyRef | Null ): Boolean =
6060 x.asInstanceOf [AnyRef ] eq y.asInstanceOf [AnyRef ]
6161 /** Enables an expression of type `T|Null`, where `T` is a subtype of `AnyRef`, to be checked for `null`
6262 * using `ne` rather than only `!=`. This is needed because `Null` no longer has
6363 * `eq` or `ne` methods, only `==` and `!=` inherited from `Any`. */
64- inline def ne (inline y : AnyRef | Null ): Boolean =
64+ inline infix def ne (inline y : AnyRef | Null ): Boolean =
6565 ! (x eq y)
6666
6767 extension (opt : Option .type )
You can’t perform that action at this time.
0 commit comments