diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-30 18:25:57 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-30 18:25:57 +0300 |
commit | 039bb97123fd8a74b9954598d7a102e235fd108d (patch) | |
tree | 2cf4a8a8c7beddb46ec6f6d34f4b1299dd053f5a /core/testdata/format/website-samples/sample.kt | |
parent | 0e3fe9f50cb52a783666291c2f2d618706617bc3 (diff) | |
download | dokka-039bb97123fd8a74b9954598d7a102e235fd108d.tar.gz dokka-039bb97123fd8a74b9954598d7a102e235fd108d.tar.bz2 dokka-039bb97123fd8a74b9954598d7a102e235fd108d.zip |
Fixed tests for sample formats
Diffstat (limited to 'core/testdata/format/website-samples/sample.kt')
-rw-r--r-- | core/testdata/format/website-samples/sample.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/testdata/format/website-samples/sample.kt b/core/testdata/format/website-samples/sample.kt new file mode 100644 index 00000000..a664c2f5 --- /dev/null +++ b/core/testdata/format/website-samples/sample.kt @@ -0,0 +1,16 @@ +/** + * Groups elements of the original sequence by the key returned by the given [keySelector] function + * applied to each element and returns a map where each group key is associated with a list of corresponding elements. + * @sample example1 + */ +fun foo(): Int { + return 0 +} + +fun foo(i: Int): Int { + return 1 +} + +fun example1(node: String) = if (true) { + println(property) +} |