質問編集履歴

1

その他試したことを追記

2019/10/30 04:30

投稿

masayoshi555
masayoshi555

スコア9

test CHANGED
File without changes
test CHANGED
@@ -185,3 +185,49 @@
185
185
 
186
186
 
187
187
  よろしくお願いします。
188
+
189
+
190
+
191
+ ---
192
+
193
+ 以下、その他試したことを追記
194
+
195
+
196
+
197
+ ```swift
198
+
199
+ var chickenOfInterestCount = 0
200
+
201
+
202
+
203
+ for chicken in chickens {
204
+
205
+ switch chicken {
206
+
207
+ case (Breed.leghorn, Temper.hilarious) :
208
+
209
+ chickenOfInterestCount += 1
210
+
211
+ default:
212
+
213
+ break
214
+
215
+ }
216
+
217
+ }
218
+
219
+ chickenOfInterestCount
220
+
221
+ ```
222
+
223
+
224
+
225
+ ```error
226
+
227
+ Enum case 'hilarious' is not a member of type '<<error type>>'
228
+
229
+ Enum case 'leghorn' is not a member of type '<<error type>>'
230
+
231
+ Tuple pattern cannot match values of the non-tuple type 'Chicken'
232
+
233
+ ```