summaryrefslogtreecommitdiff
path: root/test/files/run/xMigration.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2015-06-17 14:47:13 -0700
committerSom Snytt <som.snytt@gmail.com>2015-06-19 08:10:25 -0700
commitc3aca109e95e2259d9909f8457a1422c5c995940 (patch)
tree733e9869a7a3c064ab667a564fb7e63745b6e390 /test/files/run/xMigration.check
parentaa98d9a8c19ca27d85b62d1eccfc868440dc9ab2 (diff)
downloadscala-c3aca109e95e2259d9909f8457a1422c5c995940.tar.gz
scala-c3aca109e95e2259d9909f8457a1422c5c995940.tar.bz2
scala-c3aca109e95e2259d9909f8457a1422c5c995940.zip
SI-9206 Fix REPL code indentation
To make code in error messages line up with the original line of code, templated code is indented by the width of the prompt. Use the raw prompt (without ANSI escapes or newlines) to determine the indentation. Also, indent only once per line.
Diffstat (limited to 'test/files/run/xMigration.check')
-rw-r--r--test/files/run/xMigration.check18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/files/run/xMigration.check b/test/files/run/xMigration.check
index 378f7bb6c3..304132a848 100644
--- a/test/files/run/xMigration.check
+++ b/test/files/run/xMigration.check
@@ -12,10 +12,10 @@ res1: Iterable[String] = MapLike(eis)
scala> :setting -Xmigration:any
scala> Map(1 -> "eis").values // warn
-<console>:8: warning: method values in trait MapLike has changed semantics in version 2.8.0:
+<console>:11: warning: method values in trait MapLike has changed semantics in version 2.8.0:
`values` returns `Iterable[B]` rather than `Iterator[B]`.
- Map(1 -> "eis").values // warn
- ^
+ Map(1 -> "eis").values // warn
+ ^
res2: Iterable[String] = MapLike(eis)
scala> :setting -Xmigration:2.8
@@ -26,10 +26,10 @@ res3: Iterable[String] = MapLike(eis)
scala> :setting -Xmigration:2.7
scala> Map(1 -> "eis").values // warn
-<console>:8: warning: method values in trait MapLike has changed semantics in version 2.8.0:
+<console>:11: warning: method values in trait MapLike has changed semantics in version 2.8.0:
`values` returns `Iterable[B]` rather than `Iterator[B]`.
- Map(1 -> "eis").values // warn
- ^
+ Map(1 -> "eis").values // warn
+ ^
res4: Iterable[String] = MapLike(eis)
scala> :setting -Xmigration:2.11
@@ -40,10 +40,10 @@ res5: Iterable[String] = MapLike(eis)
scala> :setting -Xmigration // same as :any
scala> Map(1 -> "eis").values // warn
-<console>:8: warning: method values in trait MapLike has changed semantics in version 2.8.0:
+<console>:11: warning: method values in trait MapLike has changed semantics in version 2.8.0:
`values` returns `Iterable[B]` rather than `Iterator[B]`.
- Map(1 -> "eis").values // warn
- ^
+ Map(1 -> "eis").values // warn
+ ^
res6: Iterable[String] = MapLike(eis)
scala> :quit