From 3edde2727bad9b00cbaf5475f5bf234f08c26cbd Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Sat, 23 Feb 2013 14:34:29 +0100 Subject: [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. --- test/files/neg/t7166.check | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/files/neg/t7166.check (limited to 'test/files/neg/t7166.check') 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 -- cgit v1.2.3