Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bzbarsky-apple
Copy link
Contributor

We treated things with neither "introduced" nor "provisional" annotations as provisional in availabilityHelper(), but isProvisional() returned false for them. This could lead us to generate non-provisional code (conditioned on isProvisional()) that would try to call into things with provisional availability, which would fail to compile.

The fix is to make isProvisional the source of truth for whether things are provisional, move the "no introduced annotation" check into isProvisional, and factor out the "have provisional annotation" logic so we can keep having the warning when we take the "provisional because not otherwise annotated" codepath.

We treated things with neither "introduced" nor "provisional" annotations as
provisional in availabilityHelper(), but isProvisional() returned false for
them.  This could lead us to generate non-provisional code (conditioned on
isProvisional()) that would try to call into things with provisional
availability, which would fail to compile.

The fix is to make isProvisional the source of truth for whether things are
provisional, move the "no introduced annotation" check into isProvisional, and
factor out the "have provisional annotation" logic so we can keep having the
warning when we take the "provisional because not otherwise annotated" codepath.
@tecimovic tecimovic force-pushed the darwin-provisional-fix branch from c49a77f to 1a1325f Compare October 28, 2023 20:57
@tecimovic tecimovic merged commit 8f00f92 into project-chip:master Oct 28, 2023
@bzbarsky-apple bzbarsky-apple deleted the darwin-provisional-fix branch October 30, 2023 13:04
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.

5 participants