diff options
Diffstat (limited to 'test/files/neg/migration28.check')
-rw-r--r-- | test/files/neg/migration28.check | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/files/neg/migration28.check b/test/files/neg/migration28.check index 4324cc0d0a..97146e88f7 100644 --- a/test/files/neg/migration28.check +++ b/test/files/neg/migration28.check @@ -1,8 +1,6 @@ -migration28.scala:5: error: method ++= in class Stack is deprecated: use pushAll - s ++= List(1,2,3) - ^ -migration28.scala:7: error: method foreach in class Stack has changed semantics: -Stack iterator and foreach now traverse in FIFO order. - s foreach (_ => ()) - ^ -two errors found +migration28.scala:4: error: method scanRight in trait TraversableLike has changed semantics: +This scanRight definition has changed in 2.9. +The previous behavior can be reproduced with scanRight.reverse. + List(1,2,3,4,5).scanRight(0)(_+_) + ^ +one error found |