aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1672.scala
blob: cbcc5bfb77d621a4b832987cf2ff7fc1c53f042a (plain) (blame)
1
2
3
4
5
6
7
class Test {
  implicit def compareComparables[T](x: T)(implicit ord: Ordering[T]) = // error: result type of implicit definition needs to be given explicitly
    new ord.Ops(x)
  class Bippy { def compare(y: Bippy) = util Random }
  () < () // error: value `<` is not a member of Unit
}