From 5d13128a3d59fea4fa9c417938901e0776e9e5cd Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 8 Nov 2016 10:03:38 +0100 Subject: Fixed #1672: Add regression test. This issue was solved by some other fix. --- tests/neg/i1672.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/neg/i1672.scala (limited to 'tests/neg/i1672.scala') diff --git a/tests/neg/i1672.scala b/tests/neg/i1672.scala new file mode 100644 index 000000000..cbcc5bfb7 --- /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 +} -- cgit v1.2.3