diff options
Diffstat (limited to 'tests/untried/pos/t3373.scala')
-rw-r--r-- | tests/untried/pos/t3373.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/t3373.scala b/tests/untried/pos/t3373.scala new file mode 100644 index 000000000..91768e201 --- /dev/null +++ b/tests/untried/pos/t3373.scala @@ -0,0 +1,11 @@ +class Entry(time: Long) { + def getTime: Long = time +} + +object Test { + def extractTime(e: Entry) = e.getTime + + implicit val orderEntries = new Ordering[Entry] { + def compare(first: Entry, second: Entry) = extractTime(first) compare extractTime(second) + } +} |