swift
b3b20310 - [cxx-interop] Fix a rare compilation error in reverse interop header

Commit
246 days ago
[cxx-interop] Fix a rare compilation error in reverse interop header To trigger this error one needs to import a nested type from C++, use it in a generic context in Swift, and export it back to C++. We were inconsisent in what namespace did we declare the functions to get the type metadata for types. It was in the swift namespace for foreign types and in the module namespace for Swift types. This PR standardizes on how the metadata function is declared and called to fix the issue. Fixes #80538. rdar://148597079
Author
Gabor Horvath
Committer
Gabor Horvath
Parents
Loading