Skip to content

Commit

Permalink
test more SIP-64 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Dec 25, 2024
1 parent 302c219 commit c5b259d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ trait Order[T]:
extension (values: Seq[T]) def toSorted: Seq[T] = ???
def compare(x: T, y: T): Int

given List[Int] => Object = new:
def foo() = 1

given Order[Int]:
def compare(x: Int, y: Int) = ???

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ trait Order[T]:
extension (values: Seq[T]) def toSorted: Seq[T] = ???
def compare(x: T, y: T): Int

given List[Int] => Object = new:
def foo(): Int = 1

given Order[Int]:
def compare(x: Int, y: Int): Int = ???

Expand Down

0 comments on commit c5b259d

Please sign in to comment.