Skip to content

Conversation

@dwijnand
Copy link
Member

@dwijnand dwijnand commented Jan 4, 2024

Fix #19275

@dwijnand dwijnand marked this pull request as ready for review January 4, 2024 13:34
@dwijnand dwijnand requested a review from sjrd January 4, 2024 13:34
@sjrd sjrd merged commit 2638eb4 into scala:main Jan 23, 2024
@dwijnand dwijnand deleted the cant-decompose-an-opaque branch January 23, 2024 17:05
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 2024
WojciechMazur added a commit that referenced this pull request Jun 28, 2024
Backports #19368 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
zielinsky pushed a commit that referenced this pull request Oct 7, 2025
fixes: #22513

Currently, if the upper bounds of opaque types are sealed, they pass
exhaustivityCheckable, but exhaustivity checks are not handled correctly
because the compiler preventing from decomposing them.
The guard was introduced in
[#19368](#19368), but the tests
still pass even without this guard.
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request Nov 5, 2025
fixes: scala#22513

Currently, if the upper bounds of opaque types are sealed, they pass
exhaustivityCheckable, but exhaustivity checks are not handled correctly
because the compiler preventing from decomposing them.
The guard was introduced in
[scala#19368](scala#19368), but the tests
still pass even without this guard.
[Cherry-picked f4e6239]
HarrisL2 pushed a commit to HarrisL2/scala3 that referenced this pull request Nov 18, 2025
fixes: scala#22513

Currently, if the upper bounds of opaque types are sealed, they pass
exhaustivityCheckable, but exhaustivity checks are not handled correctly
because the compiler preventing from decomposing them.
The guard was introduced in
[scala#19368](scala#19368), but the tests
still pass even without this guard.
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-positive unreachable case warning with opaque types and List

3 participants