We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unary_!_=
1 parent 614812b commit 1010692Copy full SHA for 1010692
tests/neg-custom-args/fatal-warnings/i9241.scala
@@ -16,7 +16,6 @@ final class Baz private (val x: Int) extends AnyVal {
16
def unary_- : Baz = ???
17
def unary_+[T] : Baz = ???
18
def unary_!() : Baz = ??? // error
19
- def `unary_!_=`() : Baz = ??? // ok
20
def unary_~(using Int) : Baz = ???
21
}
22
tests/pos/unary-eq.scala
@@ -0,0 +1,6 @@
1
+final class Baz private (val x: Int) extends AnyVal {
2
+ def `unary_!_=`() : Baz = ??? // parses ok, but will not be usable
3
+ def `unary_~_=`() : Baz = ??? // parses ok, but will not be usable
4
+ def `unary_+_=`() : Baz = ??? // parses ok, but will not be usable
5
+ def `unary_-_=`() : Baz = ??? // parses ok, but will not be usable
6
+}
0 commit comments