Skip to content

Commit 1010692

Browse files
committed
Move parsing unary_!_= test
1 parent 614812b commit 1010692

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/neg-custom-args/fatal-warnings/i9241.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ final class Baz private (val x: Int) extends AnyVal {
1616
def unary_- : Baz = ???
1717
def unary_+[T] : Baz = ???
1818
def unary_!() : Baz = ??? // error
19-
def `unary_!_=`() : Baz = ??? // ok
2019
def unary_~(using Int) : Baz = ???
2120
}
2221

tests/pos/unary-eq.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)