aboutsummaryrefslogtreecommitdiff
path: root/core/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata')
-rw-r--r--core/testdata/format/inheritedCompanionObjectProperties.kt18
-rw-r--r--core/testdata/format/inheritedCompanionObjectProperties.md38
2 files changed, 56 insertions, 0 deletions
diff --git a/core/testdata/format/inheritedCompanionObjectProperties.kt b/core/testdata/format/inheritedCompanionObjectProperties.kt
new file mode 100644
index 00000000..74a3749c
--- /dev/null
+++ b/core/testdata/format/inheritedCompanionObjectProperties.kt
@@ -0,0 +1,18 @@
+open class A {
+ fun foo() {
+ }
+}
+
+open class B {
+ fun bar() {
+ }
+}
+
+class C : A {
+ fun xyzzy() {
+ }
+
+ companion object : B () {
+ fun shazam()
+ }
+}
diff --git a/core/testdata/format/inheritedCompanionObjectProperties.md b/core/testdata/format/inheritedCompanionObjectProperties.md
new file mode 100644
index 00000000..9ec24edb
--- /dev/null
+++ b/core/testdata/format/inheritedCompanionObjectProperties.md
@@ -0,0 +1,38 @@
+[test](test/index) / [C](test/-c/index)
+
+
+# C
+
+`class C : [A](test/-a/index)`
+
+
+
+### Constructors
+
+
+| [<init>](test/-c/-init-) | `C()` |
+
+
+### Functions
+
+
+| [xyzzy](test/-c/xyzzy) | `fun xyzzy(): Unit` |
+
+
+### Inherited Functions
+
+
+| [foo](test/-a/foo) | `fun foo(): Unit` |
+
+
+### Companion Object Functions
+
+
+| [shazam](test/-c/shazam) | `fun shazam(): Unit` |
+
+
+### Inherited Companion Object Functions
+
+
+| [bar](test/-b/bar) | `fun bar(): Unit` |
+