diff --git a/tests/neg/i1672.scala b/tests/neg/i1672.scala new file mode 100644 index 000000000000..cbcc5bfb77d6 --- /dev/null +++ b/tests/neg/i1672.scala @@ -0,0 +1,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 +}