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

Bug when displaying type parameter with 'where' #3944

Open
CLOVIS-AI opened this issue Nov 29, 2024 · 1 comment
Open

Bug when displaying type parameter with 'where' #3944

CLOVIS-AI opened this issue Nov 29, 2024 · 1 comment
Labels

Comments

@CLOVIS-AI
Copy link
Contributor

Describe the bug

Using the following function:

fun <T> foo(): Unit where T : A, T : B

when using the HTML output, Dokka exports:

fun <T : A, B> foo(): Unit

which is incorrect.

Screenshots

Full example signature:

@OptIn(LowLevelApi::class)
fun <Type, Document : Any> Pipeline<Type, Document>.match(
	filter: FilterOperators<Document>.() -> Unit
): Pipeline<Type, Document> where Type : PipelineType, Type : HasMatch = //

Dokka HTML output:
image

Dokka configuration
Configuration of dokka used to reproduce the bug

Using dokkatoo with this configuration, though I don't think there's anything there that is relevant.

Installation

  • Operating system: Linux
  • Build tool: Gradle 8.10.2
  • Dokkatoo version: 2.4.0
@CLOVIS-AI CLOVIS-AI added the bug label Nov 29, 2024
@CLOVIS-AI
Copy link
Contributor Author

CLOVIS-AI commented Nov 29, 2024

Maybe a possible output would be to export

fun <Type : PipelineType & HasMatch, Document : Any> …

& isn't allowed for this in Kotlin yet, but it's still pretty clear since it can be used with & Any to make something non-nullable.

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

1 participant