Closed as not planned
Closed as not planned
Description
Description
The macro doc suggests that the method is imported as a computed property:
/// Specifies that a specific C++ method should be imported as a computed
/// property. If this macro is specified on a getter, a getter will be
/// synthesized. If this macro is specified on a setter, both a getter and
/// setter will be synthesized.
///
/// For example:
/// ```
/// int getX() SWIFT_COMPUTED_PROPERTY;
/// ```
/// Will be imported as `var x: CInt {...}`.
In actuality a computed property is imported in addition to the method.
Reproduction
Expected behavior
It was brought to my understanding that importing both is an expected implementation detail, but since one can actually use the imported method, we should either change the implementation to annotate it as unavailable or update the documentation to point out the actual behavior.
Environment
Swift version 6.2-dev (LLVM 017432c08540af8, Swift 9488df1)
Additional information
No response