Skip to content

Always check return expressions when type checking a file#3352

Merged
JsonFreeman merged 4 commits into
masterfrom
checkFunctionReturnExpression
Jun 3, 2015
Merged

Always check return expressions when type checking a file#3352
JsonFreeman merged 4 commits into
masterfrom
checkFunctionReturnExpression

Conversation

@JsonFreeman

Copy link
Copy Markdown
Contributor

Fixes #3166. Because we get return types from signatures on demand, and we defer checking function expression bodies, any noImplicitAny errors resulting from widening a return expression may be missed. This change forces these checks when we visit function expression bodies in the checker.

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

👍 With the test i mentioned.

@yuit

yuit commented Jun 3, 2015

Copy link
Copy Markdown
Contributor

lgtm

JsonFreeman added a commit that referenced this pull request Jun 3, 2015
Always check return expressions when type checking a file
@JsonFreeman JsonFreeman merged commit a1703d7 into master Jun 3, 2015
@JsonFreeman JsonFreeman deleted the checkFunctionReturnExpression branch June 3, 2015 17:54
@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.

error MSB6006: "tsc.exe" exited with code 1

4 participants