質問するログイン新規登録

質問編集履歴

1

その他試したことを追記

2019/10/30 04:30

投稿

masayoshi555
masayoshi555

スコア9

title CHANGED
File without changes
body CHANGED
@@ -91,4 +91,27 @@
91
91
  ```
92
92
  ↑このエラー自体は言っていることはわかるのですが、どうやったら解決するのかがわかりませんでした。
93
93
 
94
- よろしくお願いします。
94
+ よろしくお願いします。
95
+
96
+ ---
97
+ 以下、その他試したことを追記
98
+
99
+ ```swift
100
+ var chickenOfInterestCount = 0
101
+
102
+ for chicken in chickens {
103
+ switch chicken {
104
+ case (Breed.leghorn, Temper.hilarious) :
105
+ chickenOfInterestCount += 1
106
+ default:
107
+ break
108
+ }
109
+ }
110
+ chickenOfInterestCount
111
+ ```
112
+
113
+ ```error
114
+ Enum case 'hilarious' is not a member of type '<<error type>>'
115
+ Enum case 'leghorn' is not a member of type '<<error type>>'
116
+ Tuple pattern cannot match values of the non-tuple type 'Chicken'
117
+ ```