Skip to content

Fix #8834: exclude paramters and variables from flag checks #8845

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

Merged
merged 2 commits into from
May 26, 2016
Merged

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented May 26, 2016

Fixes #8834

@mhegazy
Copy link
Contributor Author

mhegazy commented May 26, 2016

@RyanCavanaugh can you take a look.

@@ -14527,6 +14527,12 @@ namespace ts {
}

function areDeclarationFlagsIdentical(left: Declaration, right: Declaration) {
if ((left.kind === SyntaxKind.Parameter && right.kind === SyntaxKind.VariableDeclaration) ||
(left.kind === SyntaxKind.VariableDeclaration && right.kind === SyntaxKind.Parameter)) {
// Diffrences in optionality between paramters and variables are allowed.
Copy link
Member

Choose a reason for hiding this comment

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

Spelling (Differences, parameters)

@RyanCavanaugh
Copy link
Member

👍

@mhegazy mhegazy merged commit b70d079 into master May 26, 2016
@mhegazy mhegazy deleted the Fix8834 branch May 26, 2016 21:35
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants