Skip to content

Commit fd49eb6

Browse files
szymon-rdKordyjan
authored andcommitted
Add a failing case with named using to test Wunused:implicits
1 parent e8e5656 commit fd49eb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/neg-custom-args/fatal-warnings/i15503f.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ val default_int = 1
55

66
def f1(a: Int) = a // OK
77
def f2(a: Int) = 1 // OK
8-
def f3(a: Int)(using Int) = a // error
9-
def f4(a: Int)(using Int) = default_int // error
8+
def f3(a: Int)(using Int) = a // OK
9+
def f4(a: Int)(using Int) = default_int // OK
1010
def f6(a: Int)(using Int) = summon[Int] // OK
1111
def f7(a: Int)(using Int) = summon[Int] + a // OK
12+
def f8(a: Int)(using foo: Int) = a // error
1213

0 commit comments

Comments
 (0)