Kotlin / dokka

API documentation engine for Kotlin
https://kotl.in/dokka
Apache License 2.0
3.45k stars 412 forks source link

Nullable functional types need to be parenthesized #3919

Open whyoleg opened 2 weeks ago

whyoleg commented 2 weeks ago

Functions or properties with nullable functional types (e.g (() -> Unit)?) as parameters or return types are rendered without parenthesis. Example from stdlib:

image

Source code:

var onpagehide: ((PageTransitionEvent) -> dynamic)?

related: https://github.com/Kotlin/dokka/issues/3637

Installation