From 372e9c796cc77aaff788df56a13deeef64b6edd7 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Wed, 18 Jan 2017 16:48:03 +0300 Subject: KT-15497 Dokka: Using of not-FQ name in @sample should be allowed --- core/testdata/format/sampleByFQName.kt | 12 ++++++++++++ core/testdata/format/sampleByFQName.md | 14 ++++++++++++++ core/testdata/format/sampleByShortName.kt | 12 ++++++++++++ core/testdata/format/sampleByShortName.md | 14 ++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 core/testdata/format/sampleByFQName.kt create mode 100644 core/testdata/format/sampleByFQName.md create mode 100644 core/testdata/format/sampleByShortName.kt create mode 100644 core/testdata/format/sampleByShortName.md (limited to 'core/testdata') diff --git a/core/testdata/format/sampleByFQName.kt b/core/testdata/format/sampleByFQName.kt new file mode 100644 index 00000000..2c0af092 --- /dev/null +++ b/core/testdata/format/sampleByFQName.kt @@ -0,0 +1,12 @@ +package test + +fun sample() { + println("sample") +} + +/** + * @sample test.sample + */ +fun use() { + +} \ No newline at end of file diff --git a/core/testdata/format/sampleByFQName.md b/core/testdata/format/sampleByFQName.md new file mode 100644 index 00000000..06333e13 --- /dev/null +++ b/core/testdata/format/sampleByFQName.md @@ -0,0 +1,14 @@ +[test](test/index) / [test](test/test/index) / [sample](test/test/sample) + +# sample + +`fun sample(): Unit`[test](test/index) / [test](test/test/index) / [use](test/test/use) + +# use + +`fun use(): Unit` + +``` kotlin +println("sample") +``` + diff --git a/core/testdata/format/sampleByShortName.kt b/core/testdata/format/sampleByShortName.kt new file mode 100644 index 00000000..2e03310f --- /dev/null +++ b/core/testdata/format/sampleByShortName.kt @@ -0,0 +1,12 @@ +package test + +fun sample() { + println("sample") +} + +/** + * @sample sample + */ +fun use() { + +} \ No newline at end of file diff --git a/core/testdata/format/sampleByShortName.md b/core/testdata/format/sampleByShortName.md new file mode 100644 index 00000000..06333e13 --- /dev/null +++ b/core/testdata/format/sampleByShortName.md @@ -0,0 +1,14 @@ +[test](test/index) / [test](test/test/index) / [sample](test/test/sample) + +# sample + +`fun sample(): Unit`[test](test/index) / [test](test/test/index) / [use](test/test/use) + +# use + +`fun use(): Unit` + +``` kotlin +println("sample") +``` + -- cgit