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 79ce6c0 commit 75a184cCopy full SHA for 75a184c
tests/pos/i2788.scala
@@ -0,0 +1,9 @@
1
+trait Ord[A] { def less(x: A, y: A): Boolean }
2
+
3
+object Main {
4
+ implicit val intOrd: Ord[Int] = new Ord { // omitted [Int] here
5
+ def less(x: Int, y: Int) = x < y
6
+ }
7
8
+ def main(args: Array[String]): Unit = ()
9
+}
0 commit comments