From ac2ecfb3af887f8d9ac57af459517fec9b615cd8 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Mon, 25 Jul 2011 14:04:01 +0000 Subject: Scaladoc should decode symbolic type alias name. --- test/scaladoc/resources/SI_4715.scala | 7 +++++++ test/scaladoc/scala/html/HtmlFactoryTest.scala | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/scaladoc/resources/SI_4715.scala (limited to 'test/scaladoc') diff --git a/test/scaladoc/resources/SI_4715.scala b/test/scaladoc/resources/SI_4715.scala new file mode 100644 index 0000000000..29daf43717 --- /dev/null +++ b/test/scaladoc/resources/SI_4715.scala @@ -0,0 +1,7 @@ +class SI_4715 { + type :+:[X,Y] = Map[X,Y] + val withType: Int :+: Double = error("") + + trait :-:[X,Y] + val withTrait: Int :-: Double = error("") +} diff --git a/test/scaladoc/scala/html/HtmlFactoryTest.scala b/test/scaladoc/scala/html/HtmlFactoryTest.scala index 21bcc29364..4fcd4136d2 100644 --- a/test/scaladoc/scala/html/HtmlFactoryTest.scala +++ b/test/scaladoc/scala/html/HtmlFactoryTest.scala @@ -334,4 +334,14 @@ object Test extends Properties("HtmlFactory") { case _ => false } } + + property("Should decode symbolic type alias name.") = { + createTemplate("SI_4715.scala") match { + case node: scala.xml.Node => { + val html = node.toString + html.contains(">: :+:[<") + } + case _ => false + } + } } -- cgit v1.2.3