We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cef7a9 commit 5d13128Copy full SHA for 5d13128
tests/neg/i1672.scala
@@ -0,0 +1,7 @@
1
+
2
+class Test {
3
+ implicit def compareComparables[T](x: T)(implicit ord: Ordering[T]) = // error: result type of implicit definition needs to be given explicitly
4
+ new ord.Ops(x)
5
+ class Bippy { def compare(y: Bippy) = util Random }
6
+ () < () // error: value `<` is not a member of Unit
7
+}
0 commit comments