Skip to content

Commit 7b247f0

Browse files
committed
test
1 parent 2b44aa8 commit 7b247f0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/warn/i22742.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
//> using options -Wunused:all -Yunused:fewest
3+
4+
trait Foldable[F[_]]:
5+
def foldLeft[A, B](fa: F[A], b: B)(f: (B, A) => B): B
6+
7+
type Id[A] = A
8+
9+
given foldableId: Foldable[Id] =
10+
new Foldable[Id]:
11+
def foldLeft[A, B](fa: Id[A], b: B)(f: (B, A) => B): B = b

0 commit comments

Comments
 (0)