Skip to content

Commit ec5bee8

Browse files
Merge pull request #77873 from AnthonyLatsis/day-10
test: Add regression test for #74545
2 parents 8d65fb3 + ea18b4b commit ec5bee8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.7-abi-triple
2+
3+
// https://github.com/swiftlang/swift/issues/74545
4+
5+
func Map<Source, Destination>(_ transform: @escaping (Source) -> Destination) -> any Sequence<Destination> {
6+
return []
7+
}
8+
9+
for i in Map({$0 + 1}) {
10+
print(i)
11+
}

0 commit comments

Comments
 (0)