aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1672.scala
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2016-11-08 10:03:38 +0100
committerNicolas Stucki <nicolas.stucki@gmail.com>2016-11-08 10:03:38 +0100
commit5d13128a3d59fea4fa9c417938901e0776e9e5cd (patch)
treec493ab712ff3dc0ec59b0784bd7d92ae8a578b51 /tests/neg/i1672.scala
parent5cef7a9098422dd568e9bc7e8eb5c9e4f04d4396 (diff)
downloaddotty-5d13128a3d59fea4fa9c417938901e0776e9e5cd.tar.gz
dotty-5d13128a3d59fea4fa9c417938901e0776e9e5cd.tar.bz2
dotty-5d13128a3d59fea4fa9c417938901e0776e9e5cd.zip
Fixed #1672: Add regression test.
This issue was solved by some other fix.
Diffstat (limited to 'tests/neg/i1672.scala')
-rw-r--r--tests/neg/i1672.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/neg/i1672.scala b/tests/neg/i1672.scala
new file mode 100644
index 000000000..cbcc5bfb7
--- /dev/null
+++ b/tests/neg/i1672.scala
@@ -0,0 +1,7 @@
+
+class Test {
+ implicit def compareComparables[T](x: T)(implicit ord: Ordering[T]) = // error: result type of implicit definition needs to be given explicitly
+ new ord.Ops(x)
+ class Bippy { def compare(y: Bippy) = util Random }
+ () < () // error: value `<` is not a member of Unit
+}