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 ea37a41 commit a80e980Copy full SHA for a80e980
tests/neg/implicit-params.scala
@@ -5,11 +5,11 @@ object Test {
5
6
def f(x: Int)(given c: C) = x + c.x
7
8
- def g0(x: Int)(given c: C) (y: Int) = x + c.x + y // error
+ def g0(x: Int)(given c: C) (y: Int) = x + c.x + y // now OK
9
10
def g(x: Int)(given c: C)(given D) = x + c.x + summon[D].x // OK
11
12
- def h(x: Int) given () = x // error
+ def h(x: Int) given () = x // error: missing return type
13
14
given C : C(11)
15
given D : D(11)
0 commit comments