Skip to content

Commit 5d13128

Browse files
committed
Fixed #1672: Add regression test.
This issue was solved by some other fix.
1 parent 5cef7a9 commit 5d13128

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)