Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullable left off function type parameter with default value #328

Closed
MK27 opened this issue Jun 27, 2018 · 1 comment
Closed

Nullable left off function type parameter with default value #328

MK27 opened this issue Jun 27, 2018 · 1 comment
Labels
Milestone

Comments

@MK27
Copy link

MK27 commented Jun 27, 2018

This method signature:

open fun checkElement (
                elem: T,
                addFunc: ((elem: T) -> Unit)? = { dataList.add(it) }
        ) : Int

Is assessed by dokka 0.9.16 as:

open fun checkElement(elem: T, addFunc: (elem: T) -> Unit = { dataList.add(it) }): Int

When it should be:

open fun checkElement(elem: T, addFunc: ((elem: T) -> Unit)? = { dataList.add(it) }): Int

@semoro semoro added the bug label Jul 3, 2018
@semoro semoro added this to the 0.9.18 milestone Jul 3, 2018
@KrystianUjma
Copy link
Contributor

created PR for that #401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants