We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a11c0 commit 25ff6b3Copy full SHA for 25ff6b3
validation-test/compiler_crashers_2_fixed/issue-73829.swift
@@ -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