Skip to content

Commit cf92c40

Browse files
authored
Merge pull request #1684 from dotty-staging/fix-1672
Fixed #1672: Add regression test.
2 parents 5cef7a9 + 5d13128 commit cf92c40

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/neg/i1672.scala

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

Comments
 (0)