We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given a plugin that registers a Kotlin lambda with a TypeOf type token:
TypeOf
val typeToken = typeOf<(String) -> String>() val lambda = { name: String -> name.toUpperCase() } extensions.add(typeToken, "lambdaExtension", lambda)
The Kotlin DSL accessor for lambdaExtension should be typed Function1<String, String>.
lambdaExtension
Function1<String, String>
The Kotlin DSL accessor for lambdaExtension is typed Function1<Object, String>.
Function1<Object, String>
Bug report that triggered the investigation: #10729 PR for the above bug that also introduces a test for this issue #10758
The text was updated successfully, but these errors were encountered:
Emit lower bound for generic types of Kotlin DSL accessors
cf1681d
Fixes #10772
bamboo
Successfully merging a pull request may close this issue.
Given a plugin that registers a Kotlin lambda with a
TypeOf
type token:Expected Behavior
The Kotlin DSL accessor for
lambdaExtension
should be typedFunction1<String, String>
.Current Behavior
The Kotlin DSL accessor for
lambdaExtension
is typedFunction1<Object, String>
.Context
Bug report that triggered the investigation: #10729
PR for the above bug that also introduces a test for this issue #10758
The text was updated successfully, but these errors were encountered: