summaryrefslogtreecommitdiff
path: root/test/files/run/t8918-unary-ids.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8918-unary-ids.scala')
-rw-r--r--test/files/run/t8918-unary-ids.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/t8918-unary-ids.scala b/test/files/run/t8918-unary-ids.scala
index 1f29abe464..3aa990f72c 100644
--- a/test/files/run/t8918-unary-ids.scala
+++ b/test/files/run/t8918-unary-ids.scala
@@ -19,13 +19,13 @@ res0: Int = -42
scala> - if (true) 1 else 2
<console>:1: error: illegal start of simple expression
- - if (true) 1 else 2
- ^
+- if (true) 1 else 2
+ ^
scala> - - 1
<console>:1: error: ';' expected but integer literal found.
- - - 1
- ^
+- - 1
+ ^
scala> -.-(1)
res1: Int = 41