Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completion-record local typechecking #408

Merged
merged 1 commit into from
Feb 23, 2022
Merged

completion-record local typechecking #408

merged 1 commit into from
Feb 23, 2022

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Feb 19, 2022

No description provided.

src/Clause.ts Outdated
})),
return: parsedHeader.returnType,
};
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An empty line is forgotten here. BTW, maybe a check should be added into a linting stage?

});
});

describe('AO returning unused is not Performed', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need similar assertions for a normal completion record containing ~unused~.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if it returns a completion record it's reasonable to capture the result and check its [[Type]] in a subsequent step. Not something we can automate.

Copy link
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nothing fatal.

Base automatically changed from rename-args to main February 23, 2022 22:11
@bakkot bakkot merged commit e919955 into main Feb 23, 2022
@bakkot bakkot deleted the typecheck branch February 23, 2022 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants