From 8556ca04c466cd7f7412465f02c52b764104f736 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 18 Apr 2013 11:58:30 -0700 Subject: Quiet down overloaded implicit warning. Apparently implicit classes product both a method symbol and a module symbol, both of which are marked implicit, which left this warning code believing there was an overloaded implicit method. --- test/files/pos/xlint1.flags | 1 + test/files/pos/xlint1.scala | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/files/pos/xlint1.flags create mode 100644 test/files/pos/xlint1.scala (limited to 'test/files/pos') diff --git a/test/files/pos/xlint1.flags b/test/files/pos/xlint1.flags new file mode 100644 index 0000000000..7949c2afa2 --- /dev/null +++ b/test/files/pos/xlint1.flags @@ -0,0 +1 @@ +-Xlint -Xfatal-warnings diff --git a/test/files/pos/xlint1.scala b/test/files/pos/xlint1.scala new file mode 100644 index 0000000000..27936d8b14 --- /dev/null +++ b/test/files/pos/xlint1.scala @@ -0,0 +1,13 @@ +package object foo { + implicit class Bar[T](val x: T) extends AnyVal { + def bippy = 1 + } +} + +package foo { + object Baz { + def main(args: Array[String]): Unit = { + "abc".bippy + } + } +} -- cgit v1.2.3