From 445c2f85e1ad0e4036c93949a72902173b5fdd56 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sat, 1 Sep 2012 11:19:47 +0200 Subject: More useful -Xlog-implicits output. The test exercises the most important case, when implicits are invalidated through shadowing. (See SI-4270) --- test/files/neg/implicit-shadow.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/neg/implicit-shadow.scala (limited to 'test/files/neg/implicit-shadow.scala') diff --git a/test/files/neg/implicit-shadow.scala b/test/files/neg/implicit-shadow.scala new file mode 100644 index 0000000000..ffd34b6408 --- /dev/null +++ b/test/files/neg/implicit-shadow.scala @@ -0,0 +1,13 @@ +object Test { + import B._, C._ + + 1.isEmpty +} + +trait A { + implicit def i2s(i: Int): String = "" +} + +object B extends A + +object C extends A \ No newline at end of file -- cgit v1.2.3