Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jul 25, 2024
1 parent 778a542 commit 2e0047a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/neg/i13580.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Error: tests/neg/i13580.scala:9:7 -----------------------------------------------------------------------------------
9 |given (using tracked val w: IntWidth) => IntCandidate: // error
| ^^^^^
| `using` is already implied here, should not be given explicitly
4 changes: 2 additions & 2 deletions tests/pos/i13580.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//> using options -language:experimental.modularity -source future
trait IntWidth:
type Out
given IntWidth with
given IntWidth:
type Out = 155

trait IntCandidate:
type Out
given (using tracked val w: IntWidth): IntCandidate with
given (tracked val w: IntWidth) => IntCandidate:
type Out = w.Out

val x = summon[IntCandidate]
Expand Down

0 comments on commit 2e0047a

Please sign in to comment.