Skip to content

Conversation

@susmonteiro
Copy link
Contributor

The annotationOnly flag was originally introduced to control for which types we would infer escapability, and for which we would rely solely on annotations. However, due to backward compatibility issues, this flag is currently always set to true. Therefore, this patch removes the annotationOnly flag and makes the compiler infer escapability from bases and fields only for simple records, such as aggregates.

@susmonteiro susmonteiro added the c++ interop Feature: Interoperability with C++ label Nov 21, 2025
@susmonteiro susmonteiro changed the title Susmonteiro/remove annotationonly flag [cxx-interop] Remove annotationOnly flag from Escapability request Nov 21, 2025
@susmonteiro
Copy link
Contributor Author

Note: this PR is a follow-up to #85485, which hasn't been merged yet. Only the last commit 6279d81 is a new addition

@susmonteiro
Copy link
Contributor Author

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant