diff options
author | Krystian Ujma <krystianujma@gmail.com> | 2019-02-15 14:10:27 +0100 |
---|---|---|
committer | Simon Ogorodnik <simon.ogorodnik@gmail.com> | 2019-02-15 16:10:27 +0300 |
commit | 5afb808f984542bb550d124f87c65c71a9148b83 (patch) | |
tree | 50eabe4caf34e0415f7396dd8809f6bf4be6a51a /core/testdata/format | |
parent | c6da6b752c698085d176acc5b75cb14abcc32f80 (diff) | |
download | dokka-5afb808f984542bb550d124f87c65c71a9148b83.tar.gz dokka-5afb808f984542bb550d124f87c65c71a9148b83.tar.bz2 dokka-5afb808f984542bb550d124f87c65c71a9148b83.zip |
Nullable left off function type parameter with default value (#401) (#328)
Diffstat (limited to 'core/testdata/format')
-rw-r--r-- | core/testdata/format/nullableTypeParameterFunction.kt | 8 | ||||
-rw-r--r-- | core/testdata/format/nullableTypeParameterFunction.md | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/core/testdata/format/nullableTypeParameterFunction.kt b/core/testdata/format/nullableTypeParameterFunction.kt new file mode 100644 index 00000000..01805a7b --- /dev/null +++ b/core/testdata/format/nullableTypeParameterFunction.kt @@ -0,0 +1,8 @@ +class Bar<T> { + val dataList = mutableListOf<T>() + + open fun checkElement( + elem: T, + addFunc: ((elem: T) -> Unit)? = { dataList.add(it) } + ): Int = 1 +}
\ No newline at end of file diff --git a/core/testdata/format/nullableTypeParameterFunction.md b/core/testdata/format/nullableTypeParameterFunction.md new file mode 100644 index 00000000..5764007b --- /dev/null +++ b/core/testdata/format/nullableTypeParameterFunction.md @@ -0,0 +1,18 @@ +[test](../index.md) / [Bar](./index.md) + +# Bar + +`class Bar<T>` + +### Constructors + +| [<init>](-init-.md) | `Bar()` | + +### Properties + +| [dataList](data-list.md) | `val dataList: MutableList<`[`T`](index.md#T)`>` | + +### Functions + +| [checkElement](check-element.md) | `fun checkElement(elem: `[`T`](index.md#T)`, addFunc: ((elem: `[`T`](index.md#T)`) -> Unit)? = { dataList.add(it) }): Int` | + |