Skip to content

Commit

Permalink
Merge pull request #77873 from AnthonyLatsis/day-10
Browse files Browse the repository at this point in the history
test: Add regression test for #74545
  • Loading branch information
AnthonyLatsis authored Dec 4, 2024
2 parents 8d65fb3 + ea18b4b commit ec5bee8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions validation-test/compiler_crashers_2_fixed/issue-74545.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: %target-typecheck-verify-swift -target %target-swift-5.7-abi-triple

// https://github.com/swiftlang/swift/issues/74545

func Map<Source, Destination>(_ transform: @escaping (Source) -> Destination) -> any Sequence<Destination> {
return []
}

for i in Map({$0 + 1}) {
print(i)
}

0 comments on commit ec5bee8

Please sign in to comment.