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:
56
56
/** Enables an expression of type `T|Null`, where `T` is a subtype of `AnyRef`, to be checked for `null`
57
57
* using `eq` rather than only `==`. This is needed because `Null` no longer has
58
58
* `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 =
60
60
x.asInstanceOf [AnyRef ] eq y.asInstanceOf [AnyRef ]
61
61
/** Enables an expression of type `T|Null`, where `T` is a subtype of `AnyRef`, to be checked for `null`
62
62
* using `ne` rather than only `!=`. This is needed because `Null` no longer has
63
63
* `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 =
65
65
! (x eq y)
66
66
67
67
extension (opt : Option .type )
You can’t perform that action at this time.
0 commit comments