Skip to content

Commit 8ae2853

Browse files
committed
Disambiguate names in test case
1 parent 5ee2b7e commit 8ae2853

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/pos/functions1.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object Functions {
1212
val x2: String => Int = x.foo
1313
val x3 = x.foo _
1414
}
15-
15+
1616
object sams {
1717
abstract class Spore[T, U] {
1818
def run(x: T): U
@@ -22,9 +22,9 @@ object Functions {
2222
def run(x: T): U
2323
}
2424

25-
val x: String => String = {
25+
val x33: String => String = x22 => x22 match {
2626
case "abc" => ""
27-
case x => x
27+
case x34 => x34
2828
}
2929
val y: PartialFunction[String, String] = x => x match {
3030
case "abc" => ""

0 commit comments

Comments
 (0)