aboutsummaryrefslogtreecommitdiff
path: root/test/data/format/companionObjectExtension.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/format/companionObjectExtension.kt')
-rw-r--r--test/data/format/companionObjectExtension.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/data/format/companionObjectExtension.kt b/test/data/format/companionObjectExtension.kt
new file mode 100644
index 00000000..f452de2c
--- /dev/null
+++ b/test/data/format/companionObjectExtension.kt
@@ -0,0 +1,10 @@
+class Foo {
+ companion object Default {
+ }
+}
+
+
+/**
+ * The default object property.
+ */
+val Foo.Default.x: Int get() = 1