From 4da259b26eb9d3409392fef91d36471cd7ac4354 Mon Sep 17 00:00:00 2001 From: Vlad Ureche Date: Thu, 8 Dec 2011 02:14:21 +0100 Subject: Fixed #5054, #5287 The documents with use cases should be restructured like: /** * The full definition, either used with an implicit value or with an explicit one. * * Some more explanation on implicits... * * @param lost a lost parameter * @return some integer * * @usecase def test(): Int * * This takes the implicit value in scope. * * Example: `test()` * * @usecase def test(explicit: Int): Int * * This takes the explicit value passed. * * Example: `test(3)` */ def test(implicit lost: Int): Int --- test/scaladoc/resources/SI_5054_q2.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/scaladoc/resources/SI_5054_q2.scala (limited to 'test/scaladoc/resources/SI_5054_q2.scala') diff --git a/test/scaladoc/resources/SI_5054_q2.scala b/test/scaladoc/resources/SI_5054_q2.scala new file mode 100644 index 0000000000..c873731e5b --- /dev/null +++ b/test/scaladoc/resources/SI_5054_q2.scala @@ -0,0 +1,9 @@ +class SI_5054_q2 { + /** + * A simple comment + * + * @param lost a lost parameter + * @usecase def test(): Int + */ + final def test(implicit lost: Int): Int = lost +} -- cgit v1.2.3