Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test more SIP-64 syntax
Browse files Browse the repository at this point in the history
bjaglin committed Dec 25, 2024
1 parent 302c219 commit c5b259d
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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) = ???

Original file line number Diff line number Diff line change
@@ -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 = ???

0 comments on commit c5b259d

Please sign in to comment.