Skip to content

Commit 662958e

Browse files
committed
Piggy-back unrelated tests
1 parent 9fdb1ff commit 662958e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/pos/derives-obj.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class C[T]
2+
object C { def derived[T]: C[T] = ??? }
3+
4+
object X extends C[X.type] derives C

tests/pos/multi-given.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
trait A
2+
trait B
3+
trait C
4+
5+
def fancy given (a: A, b: B, c: C) = "Fancy!"
6+
def foo(implicit a: A, b: B, c: C) = "foo"

0 commit comments

Comments
 (0)