aboutsummaryrefslogtreecommitdiff
path: root/test/data/format/extensions.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-09 19:48:44 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-09 19:48:44 +0100
commit4b0dcee83efbdb77ae5e389ee04c309c52446153 (patch)
treeed2251d21b2b79985ce958a30e4c238e90f606f9 /test/data/format/extensions.kt
parentc1a1cf14edfcf3b1b0cd166d60cee30e109ffe1a (diff)
downloaddokka-4b0dcee83efbdb77ae5e389ee04c309c52446153.tar.gz
dokka-4b0dcee83efbdb77ae5e389ee04c309c52446153.tar.bz2
dokka-4b0dcee83efbdb77ae5e389ee04c309c52446153.zip
generate ExternalClass nodes to hold extension functions and properties for classes from other packages
Diffstat (limited to 'test/data/format/extensions.kt')
-rw-r--r--test/data/format/extensions.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/data/format/extensions.kt b/test/data/format/extensions.kt
new file mode 100644
index 00000000..6f2eff9d
--- /dev/null
+++ b/test/data/format/extensions.kt
@@ -0,0 +1,19 @@
+package foo
+
+/**
+ * Function with receiver
+ */
+fun String.fn() {
+}
+
+/**
+ * Function with receiver
+ */
+fun String.fn(x: Int) {
+}
+
+/**
+ * Property with receiver.
+ */
+val String.foobar: Int
+ get() = size() * 2