diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-03-31 19:58:06 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-03-31 19:58:06 +0200 |
commit | bebbee81476e6996064f49f2dbe5b41d3b2cf65a (patch) | |
tree | f0f3ca43ad75ae173030f03065eef518c16eb937 /core/testdata/format/website/sample.kt | |
parent | 1c53c64e212b2373d8243a1dc2df242ee2f1a079 (diff) | |
download | dokka-bebbee81476e6996064f49f2dbe5b41d3b2cf65a.tar.gz dokka-bebbee81476e6996064f49f2dbe5b41d3b2cf65a.tar.bz2 dokka-bebbee81476e6996064f49f2dbe5b41d3b2cf65a.zip |
Correctly format code samples in overload groups. Resolves #55
Diffstat (limited to 'core/testdata/format/website/sample.kt')
-rw-r--r-- | core/testdata/format/website/sample.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/testdata/format/website/sample.kt b/core/testdata/format/website/sample.kt new file mode 100644 index 00000000..a664c2f5 --- /dev/null +++ b/core/testdata/format/website/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) +} |