You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Validate the value of the returned issue's 'kind' property.
125
+
switch(issue.kind, newIssue.kind){
126
+
case(_,.system):
127
+
// Prohibited by ST-0011.
116
128
preconditionFailure("Issue returned by issue handling closure cannot have kind 'system': \(newIssue)")
129
+
case(.apiMisused,.apiMisused):
130
+
// This is permitted, but must be listed explicitly before the
131
+
// wildcard case below.
132
+
break
133
+
case(_,.apiMisused):
134
+
// Prohibited by ST-0011.
135
+
preconditionFailure("Issue returned by issue handling closure cannot have kind 'apiMisused' when the passed-in issue had a different kind: \(newIssue)")
0 commit comments