diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-06-18 13:19:42 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-06-18 13:19:42 +0200 |
commit | 6167ec678e8fceaacc51e6d8c496ebbc8c8485af (patch) | |
tree | 1f4605837ba3309a9cad18eaba49d1a628b41791 /test/scaladoc/run/implicits-elimination.scala | |
parent | 55348f7a44f1ac52232bcceedce8d0e9c036f8d8 (diff) | |
download | scala-6167ec678e8fceaacc51e6d8c496ebbc8c8485af.tar.gz scala-6167ec678e8fceaacc51e6d8c496ebbc8c8485af.tar.bz2 scala-6167ec678e8fceaacc51e6d8c496ebbc8c8485af.zip |
Revert "Scaladoc class diagrams part 1"
This reverts commit 831f09bb6d00c152bd8aef3ce8bf9e200080fe36.
Diffstat (limited to 'test/scaladoc/run/implicits-elimination.scala')
-rw-r--r-- | test/scaladoc/run/implicits-elimination.scala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/scaladoc/run/implicits-elimination.scala b/test/scaladoc/run/implicits-elimination.scala new file mode 100644 index 0000000000..ed37b9cd90 --- /dev/null +++ b/test/scaladoc/run/implicits-elimination.scala @@ -0,0 +1,23 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest +import language._ + +object Test extends ScaladocModelTest { + + // test a file instead of a piece of code + override def resourceFile = "implicits-elimination-res.scala" + + // start implicits + def scaladocSettings = "-implicits" + + def testModel(root: Package) = { + // get the quick access implicit defs in scope (_package(s), _class(es), _trait(s), object(s) _method(s), _value(s)) + import access._ + + // SEE THE test/resources/implicits-elimination-res.scala FOR THE EXPLANATION OF WHAT'S CHECKED HERE: + val base = root._package("scala")._package("test")._package("scaladoc")._package("implicits")._package("elimination") + val A = base._class("A") + + assert(A._conversions(A.qualifiedName + ".toB").isEmpty) + } +} |