Files
swift-mirror/test/Interop/Cxx/stdlib/Inputs/std-string.h
Egor Zhdan 6852bc9834 Revert "[ConstraintSystem] C++ Interop: Binding a string literal to std.string shouldn't increase the score"
This reverts commit cd9c37ca

This is causing build failures for some projects. We need more time to investigate. Reverting this temporarily in the meantime.

rdar://158439395
2025-11-05 11:19:11 -08:00

9 lines
226 B
C++

#include <string>
struct HasMethodThatReturnsString {
int value = 111;
std::string getString() const { return std::to_string(value); }
};
inline std::string takesStringWithDefaultArg(std::string s = "abc") { return s; }