Skip to content

Commit a80e980

Browse files
committed
Fix neg test
1 parent ea37a41 commit a80e980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/neg/implicit-params.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ object Test {
55

66
def f(x: Int)(given c: C) = x + c.x
77

8-
def g0(x: Int)(given c: C) (y: Int) = x + c.x + y // error
8+
def g0(x: Int)(given c: C) (y: Int) = x + c.x + y // now OK
99

1010
def g(x: Int)(given c: C)(given D) = x + c.x + summon[D].x // OK
1111

12-
def h(x: Int) given () = x // error
12+
def h(x: Int) given () = x // error: missing return type
1313

1414
given C : C(11)
1515
given D : D(11)

0 commit comments

Comments
 (0)