Skip to content

Commit 153e7e9

Browse files
committed
Fix GCC shadow warning
1 parent c12481f commit 153e7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/std/utilities/optional/optional.monadic/transform.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ constexpr bool test_ref() {
214214
{
215215
int i = 42;
216216
std::optional<int&> opt{i};
217-
std::same_as<std::optional<int>> decltype(auto) o2 = opt.transform([](int i) { return i + 2; });
217+
std::same_as<std::optional<int>> decltype(auto) o2 = opt.transform([](int j) { return j + 2; });
218218

219219
assert(*o2 == 44);
220220
}

0 commit comments

Comments
 (0)