Skip to content

Commit 3eb8a78

Browse files
committed
Fix test
1 parent eefe66f commit 3eb8a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run/extmethods2.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ object Test extends App {
55
implied StringListOps given TC {
66
type T = List[String]
77
def (x: T) foo (y: T) = (x ++ y, the[TC])
8-
def (x: T) bar (y: Int) = (x(y), the[TC])
8+
def (x: T) bar (y: Int) = (x(0)(y), the[TC])
99
}
1010

1111
def test given TC = {
1212
assert(List("abc").foo(List("def"))._1 == List("abc", "def"))
13-
assert(List("abc").bar(2)._1 == "c")
13+
assert(List("abc").bar(2)._1 == 'c')
1414
}
1515

1616
test given TC()

0 commit comments

Comments
 (0)