Skip to content

Commit 62c71c0

Browse files
committed
Fix tests
1 parent c40760d commit 62c71c0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: tests/neg/i13580.check

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Error: tests/neg/i13580.scala:9:7 -----------------------------------------------------------------------------------
2+
9 |given (using tracked val w: IntWidth) => IntCandidate: // error
3+
| ^^^^^
4+
| `using` is already implied here, should not be given explicitly

Diff for: tests/pos/i13580.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//> using options -language:experimental.modularity -source future
22
trait IntWidth:
33
type Out
4-
given IntWidth with
4+
given IntWidth:
55
type Out = 155
66

77
trait IntCandidate:
88
type Out
9-
given (using tracked val w: IntWidth): IntCandidate with
9+
given (tracked val w: IntWidth) => IntCandidate:
1010
type Out = w.Out
1111

1212
val x = summon[IntCandidate]

0 commit comments

Comments
 (0)