From bebbee81476e6996064f49f2dbe5b41d3b2cf65a Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 31 Mar 2016 19:58:06 +0200 Subject: Correctly format code samples in overload groups. Resolves #55 --- core/testdata/format/website/sample.kt | 16 ++++++++++++++++ core/testdata/format/website/sample.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 core/testdata/format/website/sample.kt create mode 100644 core/testdata/format/website/sample.md (limited to 'core/testdata/format/website') 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) +} diff --git a/core/testdata/format/website/sample.md b/core/testdata/format/website/sample.md new file mode 100644 index 00000000..1b50d76c --- /dev/null +++ b/core/testdata/format/website/sample.md @@ -0,0 +1,33 @@ +--- +title: foo - test +layout: api +--- + +
test / foo
+ + +# foo + +
fun foo(): Int
+
+ +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. + +
+``` kotlin +if (true) { + println(property) +} +``` +
+
+
+
+
+
+
fun foo(i: Int): Int
+
+
+
+
-- cgit