diff options
author | Martin Odersky <odersky@gmail.com> | 2014-10-13 12:07:30 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-10-13 13:42:15 +0200 |
commit | 8ae2853e5a72363bb56b9cc69643e96f2ca4c1a3 (patch) | |
tree | 12055d27613ab2717ccb4e3e0d22b92f159f83a3 | |
parent | 5ee2b7edc888dc8d71f2257f51da65cfccd35a41 (diff) | |
download | dotty-8ae2853e5a72363bb56b9cc69643e96f2ca4c1a3.tar.gz dotty-8ae2853e5a72363bb56b9cc69643e96f2ca4c1a3.tar.bz2 dotty-8ae2853e5a72363bb56b9cc69643e96f2ca4c1a3.zip |
Disambiguate names in test case
-rw-r--r-- | tests/pos/functions1.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pos/functions1.scala b/tests/pos/functions1.scala index 93f4fc7b6..04b90d80e 100644 --- a/tests/pos/functions1.scala +++ b/tests/pos/functions1.scala @@ -12,7 +12,7 @@ object Functions { val x2: String => Int = x.foo val x3 = x.foo _ } - + object sams { abstract class Spore[T, U] { def run(x: T): U @@ -22,9 +22,9 @@ object Functions { def run(x: T): U } - val x: String => String = { + val x33: String => String = x22 => x22 match { case "abc" => "" - case x => x + case x34 => x34 } val y: PartialFunction[String, String] = x => x match { case "abc" => "" |