diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-08 18:16:12 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-08 18:16:12 +0100 |
commit | 931a37df263768f0642b8bd41192e7caf0701ff7 (patch) | |
tree | 1c04cc43f59cbd9ca003c1ba87ffa3eac9fbc995 /core/testdata | |
parent | 7fb4d948893db3332fcb7610261300cc5b856cff (diff) | |
download | dokka-931a37df263768f0642b8bd41192e7caf0701ff7.tar.gz dokka-931a37df263768f0642b8bd41192e7caf0701ff7.tar.bz2 dokka-931a37df263768f0642b8bd41192e7caf0701ff7.zip |
include extension function in the list of extensions for a class if the class is an upper bound of the receiver type parameter
Diffstat (limited to 'core/testdata')
-rw-r--r-- | core/testdata/format/receiverParameterTypeBound.kt | 5 | ||||
-rw-r--r-- | core/testdata/format/receiverParameterTypeBound.md | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/core/testdata/format/receiverParameterTypeBound.kt b/core/testdata/format/receiverParameterTypeBound.kt new file mode 100644 index 00000000..2b5f6f17 --- /dev/null +++ b/core/testdata/format/receiverParameterTypeBound.kt @@ -0,0 +1,5 @@ +open class Foo { +} + +fun <T : Foo> T.xyzzy() { +} diff --git a/core/testdata/format/receiverParameterTypeBound.md b/core/testdata/format/receiverParameterTypeBound.md new file mode 100644 index 00000000..872158ac --- /dev/null +++ b/core/testdata/format/receiverParameterTypeBound.md @@ -0,0 +1,20 @@ +[test](test/index) / [Foo](test/-foo/index) + + +# Foo + +`open class Foo` + + + +### Constructors + + +| [<init>](test/-foo/-init-) | `Foo()` | + + +### Extension Functions + + +| [xyzzy](test/xyzzy) | `fun <T : [Foo](test/-foo/index)> T.xyzzy(): Unit` | + |