@@ -118,7 +118,16 @@ extension PointerStyle: ParseableModifierValue {
118
118
extension HorizontalDirection . Set : ParseableModifierValue {
119
119
public static func parser( in context: ParseableModifierContext ) -> some Parser < Substring . UTF8View , Self > {
120
120
OneOf {
121
- Array < Self . Element > . parser ( in: context) . map ( { Self . init ( $0) } )
121
+ // this fails to compile in release mode in Xcode 16:
122
+ // Array<Self.Element>.parser(in: context).map({ Self.init($0) })
123
+ ListLiteral {
124
+ ImplicitStaticMember ( [
125
+ " all " : Self . all,
126
+ " leading " : Self . leading,
127
+ " trailing " : Self . trailing,
128
+ ] )
129
+ }
130
+ . map ( Self . init ( _: ) )
122
131
ImplicitStaticMember ( [
123
132
" all " : Self . all,
124
133
" leading " : Self . leading,
@@ -132,7 +141,16 @@ extension HorizontalDirection.Set: ParseableModifierValue {
132
141
extension VerticalDirection . Set : ParseableModifierValue {
133
142
public static func parser( in context: ParseableModifierContext ) -> some Parser < Substring . UTF8View , Self > {
134
143
OneOf {
135
- Array < Self . Element > . parser ( in: context) . map ( { Self . init ( $0) } )
144
+ // this fails to compile in release mode in Xcode 16:
145
+ // Array<Self.Element>.parser(in: context).map({ Self.init($0) })
146
+ ListLiteral {
147
+ ImplicitStaticMember ( [
148
+ " all " : Self . all,
149
+ " up " : Self . up,
150
+ " down " : Self . down,
151
+ ] )
152
+ }
153
+ . map ( Self . init ( _: ) )
136
154
ImplicitStaticMember ( [
137
155
" all " : Self . all,
138
156
" up " : Self . up,
@@ -147,7 +165,16 @@ extension VerticalDirection.Set: ParseableModifierValue {
147
165
extension FrameResizeDirection . Set : ParseableModifierValue {
148
166
public static func parser( in context: ParseableModifierContext ) -> some Parser < Substring . UTF8View , Self > {
149
167
OneOf {
150
- Array < Self . Element > . parser ( in: context) . map ( { Self . init ( $0) } )
168
+ // this fails to compile in release mode in Xcode 16:
169
+ // Array<Self.Element>.parser(in: context).map({ Self.init($0) })
170
+ ListLiteral {
171
+ ImplicitStaticMember ( [
172
+ " all " : Self . all,
173
+ " inward " : Self . inward,
174
+ " outward " : Self . outward,
175
+ ] )
176
+ }
177
+ . map ( Self . init ( _: ) )
151
178
ImplicitStaticMember ( [
152
179
" all " : Self . all,
153
180
" inward " : Self . inward,
0 commit comments