We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefe66f commit 3eb8a78Copy full SHA for 3eb8a78
tests/run/extmethods2.scala
@@ -5,12 +5,12 @@ object Test extends App {
5
implied StringListOps given TC {
6
type T = List[String]
7
def (x: T) foo (y: T) = (x ++ y, the[TC])
8
- def (x: T) bar (y: Int) = (x(y), the[TC])
+ def (x: T) bar (y: Int) = (x(0)(y), the[TC])
9
}
10
11
def test given TC = {
12
assert(List("abc").foo(List("def"))._1 == List("abc", "def"))
13
- assert(List("abc").bar(2)._1 == "c")
+ assert(List("abc").bar(2)._1 == 'c')
14
15
16
test given TC()
0 commit comments