aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/extensions.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata/format/extensions.kt')
-rw-r--r--core/testdata/format/extensions.kt19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/testdata/format/extensions.kt b/core/testdata/format/extensions.kt
new file mode 100644
index 00000000..6f2eff9d
--- /dev/null
+++ b/core/testdata/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