Skip to content

Conversation

@som-snytt
Copy link
Contributor

@scala-jenkins scala-jenkins added this to the 2.13.18 milestone Oct 15, 2025
@SethTisue SethTisue added release-notes worth highlighting in next release notes prio:blocker release blocker (used only by core team, only near release time) labels Oct 20, 2025
@som-snytt som-snytt force-pushed the issue/13128-infer-any-kinded branch from 22a8c50 to 7f99be2 Compare October 21, 2025 10:04
@som-snytt som-snytt marked this pull request as ready for review October 21, 2025 10:44
@SethTisue
Copy link
Member

@som-snytt how does this relate to @eed3si9n's #11157?

@som-snytt
Copy link
Contributor Author

@SethTisue it means I'm too lazy to follow the developments. If LR likes the tweaked version, then this chicken version is obviated.

@eed3si9n
Copy link
Member

@SethTisue To elaborate, there are a few flavors of cases that Scala 2.13.17 kind-checking lint would warn.

  1. curried invariant parameter F[Int] def f[F[_]](i: Int)(ev: F[Int]): Int
  2. unused type paramater def f1[F[_]](i: Int): Int
  3. curried parameter with F[Int] in contravariant position def f2[F[_]](i: Int)(ev: F[Int] => Int): Int

This PR basically backs out all three kind-checking behind the flag. On the other hand, #11157 backs out the warning for case 1, but not case 2 and 3, which is what Lukas demonstrated using the partest. If mine lands, and we sort of agree that case 2 and 3 are legit, then #11157 would supersede this PR?

@som-snytt som-snytt closed this Oct 22, 2025
@SethTisue SethTisue removed this from the 2.13.18 milestone Oct 22, 2025
@SethTisue SethTisue removed the prio:blocker release blocker (used only by core team, only near release time) label Oct 22, 2025
@lrytz
Copy link
Member

lrytz commented Oct 22, 2025

#11157 fixes clear false negatives and I think it will be merged. But we might still demote the flag out of lint, to be decided (see this comment: scala/bug#13128 (comment)).

@lrytz lrytz removed the release-notes worth highlighting in next release notes label Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New false positive warning with 2.13.17: a type was inferred to be kind-polymorphic Nothing to conform to F[_]

5 participants