diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-11-08 10:03:38 +0100 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-11-08 10:03:38 +0100 |
commit | 5d13128a3d59fea4fa9c417938901e0776e9e5cd (patch) | |
tree | c493ab712ff3dc0ec59b0784bd7d92ae8a578b51 /tests | |
parent | 5cef7a9098422dd568e9bc7e8eb5c9e4f04d4396 (diff) | |
download | dotty-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')
-rw-r--r-- | tests/neg/i1672.scala | 7 |
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 +} |