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
typeUserRecord={name: string}asyncfunctionlistUsers(token: string|undefined){return{users: [{uid: 1,name: 'Gary'}],pageToken: 'b'}}exportasyncfunctionlistAuthUsers(){letnextPageToken=undefinedconstusers: {[uid: string]: UserRecord}={}do{constusersList=awaitlistUsers(nextPageToken)// <<<< ERROR 7022 hereusersList.users.forEach((user)=>{users[user.uid]=user})nextPageToken=usersList.pageToken// <<< ERROR DISAPPEARS IF THIS LINE IS COMMENTED OUT}while(nextPageToken)}
π Actual behavior
Code above gives error 7022. If you comment out the line nextPageToken = usersList.pageToken then it's OK.
User webstrand on the discord says "even weirder - just the presence of an unused generic causes this issue" with this playground link
and user T6 on discord commented "The reason it's giving that error is CFA
Because the type of nextPageToken depends on usersList, which depends on nextPageToken
Though interestingly it shouldn't really depend on nextPageToken."
π Expected behavior
No error.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
π Version & Regression Information
This is new code, but I'm using 3.8.3. Still occurs in 4.2.3. I asked in the Discord and they said it looks like a bug.
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Code above gives error 7022. If you comment out the line
nextPageToken = usersList.pageToken
then it's OK.User webstrand on the discord says "even weirder - just the presence of an unused generic causes this issue" with this playground link
and user T6 on discord commented "The reason it's giving that error is CFA
Because the type of nextPageToken depends on usersList, which depends on nextPageToken
Though interestingly it shouldn't really depend on nextPageToken."
π Expected behavior
No error.
The text was updated successfully, but these errors were encountered: