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
I got an error about a missing { on line 59 of a file. The relevant excerpt is
/*56*/ varresponses:[Int:CalculatedResult]=[:]
/*57*/ for await case let(index, result)? in group{
/*58*/ responses[index]= result
/*59*/ }
/*60*/ return responses
I was initially baffled by the error, but then I figured that maybe it's confused by the for await case let. And indeed, rewriting it to not have that keyword string fixes it -- the following code gives no errors:
varresponses:[Int:CalculatedResult]=[:]forawaitthingin group {iflet(index, result)= thing {responses[index]= result
}}
return responses
The text was updated successfully, but these errors were encountered:
I got an error about a missing
{
on line 59 of a file. The relevant excerpt isI was initially baffled by the error, but then I figured that maybe it's confused by the
for await case let
. And indeed, rewriting it to not have that keyword string fixes it -- the following code gives no errors:The text was updated successfully, but these errors were encountered: