Skip to content

Commit 25ff6b3

Browse files
committed
Add regression test for fixed crasher
1 parent e9a11c0 commit 25ff6b3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// RUN: %target-swift-frontend -emit-ir %s
2+
3+
public func apply<Input, each Transformed>(
4+
_ transform: (repeat (Input) -> each Transformed),
5+
_ input: Input
6+
) -> (repeat each Transformed) {
7+
(repeat (each transform)(input))
8+
}
9+
10+
struct S: Equatable {
11+
// MARK: Equatables
12+
let eq = "🎛"
13+
let u = 1.0 / 1_000_000
14+
let al = 13
15+
16+
let breaksEquatableSynthesis: Void
17+
18+
static func == (ecuador0: Self, ecuador1: Self) -> Bool {
19+
let getProperties = (
20+
\.eq as (Self) -> _,
21+
\.u as (Self) -> _,
22+
\.al as (Self) -> _
23+
)
24+
return apply(getProperties, ecuador0) == apply(getProperties, ecuador1)
25+
}
26+
}

0 commit comments

Comments
 (0)