Skip to content

Commit 75a184c

Browse files
committed
Fix #2788: Add regression test
1 parent 79ce6c0 commit 75a184c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i2788.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)