Skip to content

Commit 7671941

Browse files
committed
test: Add regression test for #74545
1 parent 26e888e commit 7671941

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-swift-frontend -target %target-swift-5.7-abi-triple -emit-ir %s
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)