aboutsummaryrefslogtreecommitdiff
path: root/test/data/format/extensions.kt
diff options
context:
space:
mode:
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