Skip to content

Commit

Permalink
Merge pull request scala#2990 from dotty-staging/fix-#2788
Browse files Browse the repository at this point in the history
Fix scala#2788: Add regression test
  • Loading branch information
nicolasstucki authored Aug 17, 2017
2 parents 9c4b88d + 75a184c commit ca30985
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/i2788.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
trait Ord[A] { def less(x: A, y: A): Boolean }

object Main {
implicit val intOrd: Ord[Int] = new Ord { // omitted [Int] here
def less(x: Int, y: Int) = x < y
}

def main(args: Array[String]): Unit = ()
}

0 comments on commit ca30985

Please sign in to comment.