Skip to content

Conversation

@nox213
Copy link
Contributor

@nox213 nox213 commented Jan 14, 2026

closes #24968

Since Run[?] is not a subtype of Run[String], minus(Typ(Run[?]), Prod(Run[String])) returns Typ(Run[?]). This PR fixes false GADT exhaustivity warnings by allowing minus to inspect fields of the same case class, even without a subtype relationship

@nox213
Copy link
Contributor Author

nox213 commented Jan 14, 2026

requests.RequestTests.failures 482ms 
[123-1]   requests.RequestFailedException: Request to https://doesnt-exist.com/ failed with status code 403

The test passed when I ran locally, looks like a flaky test.
image

@som-snytt
Copy link
Contributor

That test is so flaky. I wish "someone" would adjust the CB to exclude it. Maybe it's not even the job of CB to run "every possible test".

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.

False Exhaustiveness warning

3 participants