Skip to content

Commit 799f225

Browse files
committed
Fix failing main due to wunused
1 parent 083027e commit 799f225

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object Foo {
88
private def f2(a: Int) = default_val // error
99
private def f3(a: Int)(using Int) = a // OK
1010
private def f4(a: Int)(using Int) = default_val // error
11-
private def f6(a: Int)(using Int) = summon[Int] // error
11+
private def f6(a: Int)(using Int) = summon[Int] // ok
1212
private def f7(a: Int)(using Int) = summon[Int] + a // OK
1313
}
1414

@@ -49,7 +49,7 @@ package foo.test.trivial:
4949
private def f6(x: Int) = X // OK
5050
private def f7(x: Int) = Y // OK
5151
private def f8(x: Int): List[C] = Nil // OK
52-
private def f9(x: Int): List[Int] = List(1,2,3,4) // error
52+
private def f9(x: Int): List[Int] = List(1,2,3,4) // ok
5353
private def foo:Int = 32 // OK
5454
private def f77(x: Int) = foo // error
5555
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object Foo {
88
private def f2(a: Int) = default_int // error
99
private def f3(a: Int)(using Int) = a // OK
1010
private def f4(a: Int)(using Int) = default_int // error
11-
private def f6(a: Int)(using Int) = summon[Int] // error
11+
private def f6(a: Int)(using Int) = summon[Int] // ok
1212
private def f7(a: Int)(using Int) = summon[Int] + a // OK
1313
/* --- Trivial method check --- */
1414
private def g1(x: Int) = 1 // OK

0 commit comments

Comments
 (0)