diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-18 11:58:30 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-18 11:59:18 -0700 |
commit | 8556ca04c466cd7f7412465f02c52b764104f736 (patch) | |
tree | 0f847a4c1119fcca236183793a8615bd945341f0 /test/files/pos/xlint1.scala | |
parent | 4525e9223a2fb7c1ec3014073566b559e5839805 (diff) | |
download | scala-8556ca04c466cd7f7412465f02c52b764104f736.tar.gz scala-8556ca04c466cd7f7412465f02c52b764104f736.tar.bz2 scala-8556ca04c466cd7f7412465f02c52b764104f736.zip |
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.
Diffstat (limited to 'test/files/pos/xlint1.scala')
-rw-r--r-- | test/files/pos/xlint1.scala | 13 |
1 files changed, 13 insertions, 0 deletions
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 + } + } +} |