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

Kotlin DSL Container.creating returns a platform type #9242

Open
wolfs opened this issue Feb 20, 2019 · 3 comments
Open

Kotlin DSL Container.creating returns a platform type #9242

wolfs opened this issue Feb 20, 2019 · 3 comments

Comments

@wolfs
Copy link
Member

wolfs commented Feb 20, 2019

Expected Behavior

Using

val someConfig by configurations.creating

does not issue a warning in IDEA.

Current Behavior

The warning

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.

image

Context

I found this while adding an example for the new artifact transform API here: https://github.com/gradle/artifact-transform-samples/blob/master/secondary-file-inputs/app/app.gradle.kts#L7

Steps to Reproduce (for bugs)

Open the sample https://github.com/gradle/artifact-transform-samples/blob/master/secondary-file-inputs/app/app.gradle.kts#L7 in IDEA.

Your Environment

Intellij 2019.1 EAP, Gradle 5.3 nightly.

@eskatos eskatos changed the title Container.creating returns a platform type Kotlin DSL Container.creating returns a platform type Apr 19, 2019
@eskatos eskatos transferred this issue from gradle/kotlin-dsl-samples Apr 25, 2019
@stale
Copy link

stale bot commented Sep 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Sep 6, 2020
@stale
Copy link

stale bot commented Sep 27, 2020

This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Gradle or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request.

@stale stale bot closed this as completed Sep 27, 2020
@wolfs wolfs closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2022
@eskatos eskatos removed the stale label Sep 5, 2023
@eskatos
Copy link
Member

eskatos commented Sep 5, 2023

This still reproduce with Gradle 8.4 nightly and IJ 2023.2

@eskatos eskatos reopened this Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants