diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-19 20:41:46 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-19 20:41:46 -0800 |
commit | 107e87f81be45aedccb6a943ffea86591c49fba7 (patch) | |
tree | 0934b96ad57286ed24e426016417771cf9c3bd88 /test/files/pos/t4273.scala | |
parent | 832e3179cb2d0e3dbf1ff63234ec0cbc36a2b2fe (diff) | |
parent | ab07db12cc09fd34cfab5abca9dd0f01df5f77a5 (diff) | |
download | scala-107e87f81be45aedccb6a943ffea86591c49fba7.tar.gz scala-107e87f81be45aedccb6a943ffea86591c49fba7.tar.bz2 scala-107e87f81be45aedccb6a943ffea86591c49fba7.zip |
Merge remote-tracking branches 'axel22/issue/5293' and 'jsuereth/fix-5053-view-unzip' into develop
Diffstat (limited to 'test/files/pos/t4273.scala')
-rw-r--r-- | test/files/pos/t4273.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/t4273.scala b/test/files/pos/t4273.scala new file mode 100644 index 0000000000..9a942e8325 --- /dev/null +++ b/test/files/pos/t4273.scala @@ -0,0 +1,8 @@ +class A { + implicit def compareComparables[T](x: T)(implicit ord: Ordering[T]) = new ord.Ops(x) + + class Bippy + implicit val bippyOrdering = new Ordering[Bippy] { def compare(x: Bippy, y: Bippy) = util.Random.nextInt } + + (new Bippy) < (new Bippy) +}
\ No newline at end of file |