aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/neg/i1672.scala7
1 files changed, 7 insertions, 0 deletions
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
+}