Skip to content

Commit 491a244

Browse files
committed
Add test for different arities
1 parent 6486cbc commit 491a244

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/pos/i7778.scala

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
object Example extends App {
2-
final case class Foo[A](run: A ?=> Int) {
3-
// def copy[A]: this.A ?=> Int = (using a) => run
4-
}
2+
final case class Foo[A](run: A ?=> Int)
3+
}
4+
5+
object Example2 extends App {
6+
final case class Foo[A, B](run: (A, B) ?=> Int)
7+
}
8+
9+
10+
object Example3 extends App {
11+
final case class Foo[A, B](run: () ?=> Int)
512
}

0 commit comments

Comments
 (0)