aboutsummaryrefslogtreecommitdiff
path: root/test/data/format/classWithCompanionObject.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/format/classWithCompanionObject.kt')
-rw-r--r--test/data/format/classWithCompanionObject.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/data/format/classWithCompanionObject.kt b/test/data/format/classWithCompanionObject.kt
new file mode 100644
index 00000000..fdbd915d
--- /dev/null
+++ b/test/data/format/classWithCompanionObject.kt
@@ -0,0 +1,7 @@
+class Klass() {
+ companion object {
+ val x = 1
+
+ fun foo() {}
+ }
+}