aboutsummaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorDmitry Jemerov <intelliyole@gmail.com>2015-01-14 14:01:20 +0100
committerDmitry Jemerov <intelliyole@gmail.com>2015-01-14 14:01:20 +0100
commit60e610ebdd86663bedf113d2235ac3c8364171d0 (patch)
tree0804f2730bd7da28cfb063f1b00fb4cc1773c4f9 /test/data
parentcd21e1fea43c0b7fa8013e3db7f49fe2b600b7f8 (diff)
parent0dd5ea3c1492b15bd386ec5c2c8d6e467a8f72a9 (diff)
downloaddokka-60e610ebdd86663bedf113d2235ac3c8364171d0.tar.gz
dokka-60e610ebdd86663bedf113d2235ac3c8364171d0.tar.bz2
dokka-60e610ebdd86663bedf113d2235ac3c8364171d0.zip
Merge pull request #14 from orangy/override-link
link overriding functions to the corresponding base class functions
Diffstat (limited to 'test/data')
-rw-r--r--test/data/classes/indirectOverride.kt9
-rw-r--r--test/data/format/overridingFunction.kt7
-rw-r--r--test/data/format/overridingFunction.md13
3 files changed, 29 insertions, 0 deletions
diff --git a/test/data/classes/indirectOverride.kt b/test/data/classes/indirectOverride.kt
new file mode 100644
index 00000000..8d091b80
--- /dev/null
+++ b/test/data/classes/indirectOverride.kt
@@ -0,0 +1,9 @@
+abstract class C() {
+ abstract fun foo()
+}
+
+abstract class D(): C()
+
+class E(): D() {
+ override fun foo() {}
+}
diff --git a/test/data/format/overridingFunction.kt b/test/data/format/overridingFunction.kt
new file mode 100644
index 00000000..d7329489
--- /dev/null
+++ b/test/data/format/overridingFunction.kt
@@ -0,0 +1,7 @@
+open class C() {
+ open fun f() {}
+}
+
+class D(): C() {
+ override fun f() {}
+}
diff --git a/test/data/format/overridingFunction.md b/test/data/format/overridingFunction.md
new file mode 100644
index 00000000..b53b3e13
--- /dev/null
+++ b/test/data/format/overridingFunction.md
@@ -0,0 +1,13 @@
+[test](out.md) / [](out.md) / [D](out.md) / [f](out.md)
+
+
+# f
+
+
+```
+fun f(): Unit
+```
+
+Overrides [C.f](out.md)
+
+