diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-02-23 14:34:29 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-05-11 18:37:11 +0200 |
commit | 3edde2727bad9b00cbaf5475f5bf234f08c26cbd (patch) | |
tree | 417c7e1b2ed785bcf01ee7d1b8e42fbdaa4a6d92 /test/files/neg/t7166.check | |
parent | b4da864247ccaaee4f987fbf433b312e1d744a8f (diff) | |
download | scala-3edde2727bad9b00cbaf5475f5bf234f08c26cbd.tar.gz scala-3edde2727bad9b00cbaf5475f5bf234f08c26cbd.tar.bz2 scala-3edde2727bad9b00cbaf5475f5bf234f08c26cbd.zip |
[nomaster] SI-7166 catches DivergentImplicit in c.inferImplicitXXX
Despite inferImplicit usually being nice and buffering errors, apparently
it can also throw DivergentImplicit exception. This patch catches it and
only reports it if silent is set to false.
NOTE: we no longer have the DivergentImplicit exception in master,
so this commit only makes sense in 2.10.x.
Diffstat (limited to 'test/files/neg/t7166.check')
-rw-r--r-- | test/files/neg/t7166.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t7166.check b/test/files/neg/t7166.check new file mode 100644 index 0000000000..c87198cb27 --- /dev/null +++ b/test/files/neg/t7166.check @@ -0,0 +1,4 @@ +Test_2.scala:2: error: silent = true does work! + println(implicitly[Complex[Foo]]) + ^ +one error found |