Skip to content

Commit

Permalink
Update on "[compiler] Fix to ref access check to ban ref?.current"
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
mvitousek committed Oct 25, 2024
1 parent 58c8e77 commit 53cdaeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function joinRefAccessTypes(...types: Array<RefAccessType>): RefAccessType {
} else if (a.kind === 'Guard') {
if (b.kind === 'Guard' && a.refId === b.refId) {
return a;
} else if (b.kind === 'Nullable') {
} else if (b.kind === 'Nullable' || b.kind === 'Guard') {
return {kind: 'None'};
} else {
return b;
Expand Down

0 comments on commit 53cdaeb

Please sign in to comment.