diff options
author | Vlad Ureche <vlad.ureche@epfl.ch> | 2011-12-08 02:14:21 +0100 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@epfl.ch> | 2011-12-08 02:14:21 +0100 |
commit | 4da259b26eb9d3409392fef91d36471cd7ac4354 (patch) | |
tree | 0fdbdc472631374c384be9f37d5848f125cddde1 /test/scaladoc/resources/SI_5054_q5.scala | |
parent | 332fec96e31840878bed41dd7b5314b97d8da7c2 (diff) | |
download | scala-4da259b26eb9d3409392fef91d36471cd7ac4354.tar.gz scala-4da259b26eb9d3409392fef91d36471cd7ac4354.tar.bz2 scala-4da259b26eb9d3409392fef91d36471cd7ac4354.zip |
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
Diffstat (limited to 'test/scaladoc/resources/SI_5054_q5.scala')
-rw-r--r-- | test/scaladoc/resources/SI_5054_q5.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/scaladoc/resources/SI_5054_q5.scala b/test/scaladoc/resources/SI_5054_q5.scala new file mode 100644 index 0000000000..05ba7488eb --- /dev/null +++ b/test/scaladoc/resources/SI_5054_q5.scala @@ -0,0 +1,9 @@ +trait SI_5054_q5 { + /** + * A simple comment + * + * @param lost a lost parameter + * @usecase def test(): Int + */ + def test(implicit lost: Int): Int = lost +} |