Skip to content

Commit c9720ca

Browse files
authored
Merge pull request #67796 from apple/egorzhdan/std-optional-conflict
[cxx-interop] Adjust a test
2 parents 1addca3 + e0d7f52 commit c9720ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Interop/Cxx/stdlib/Inputs/std-optional.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
#include <optional>
55

6-
using CxxOptional = std::optional<int>;
6+
using StdOptionalInt = std::optional<int>;
77

8-
inline CxxOptional getNonNilOptional() { return {123}; }
8+
inline StdOptionalInt getNonNilOptional() { return {123}; }
99

10-
inline CxxOptional getNilOptional() { return {std::nullopt}; }
10+
inline StdOptionalInt getNilOptional() { return {std::nullopt}; }
1111

1212
#endif // TEST_INTEROP_CXX_STDLIB_INPUTS_STD_OPTIONAL_H

0 commit comments

Comments
 (0)