aboutsummaryrefslogtreecommitdiff
path: root/test/data/format/summarizeSignatures.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-10-27 17:12:31 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-10-29 11:57:20 +0100
commit3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f (patch)
treeab52ce7c62c485f892e12c05e0c619c44f410cf6 /test/data/format/summarizeSignatures.kt
parent44498ab2912d1156ad9d6549353251c9220af888 (diff)
downloaddokka-3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f.tar.gz
dokka-3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f.tar.bz2
dokka-3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f.zip
summarize signatures for overloaded stdlib functions
Diffstat (limited to 'test/data/format/summarizeSignatures.kt')
-rw-r--r--test/data/format/summarizeSignatures.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/data/format/summarizeSignatures.kt b/test/data/format/summarizeSignatures.kt
new file mode 100644
index 00000000..1d875a50
--- /dev/null
+++ b/test/data/format/summarizeSignatures.kt
@@ -0,0 +1,20 @@
+package kotlin
+
+class Array<T>
+class IntArray
+class CharArray
+
+/**
+ * Returns true if foo.
+ */
+fun IntArray.foo(predicate: (Int) -> Boolean): Boolean = false
+
+/**
+ * Returns true if foo.
+ */
+fun CharArray.foo(predicate: (Char) -> Boolean): Boolean = false
+
+/**
+ * Returns true if foo.
+ */
+fun <T> Array<T>.foo(predicate: (T) -> Boolean): Boolean = false