Skip to content

[release 2.7] Always get diagnostics when emitting irrespective of whether its declaration only emit#21524

Merged
sheetalkamat merged 2 commits into
release-2.7from
alwaysGetDiagnosticsWhenEmittingRelease27
Feb 1, 2018
Merged

[release 2.7] Always get diagnostics when emitting irrespective of whether its declaration only emit#21524
sheetalkamat merged 2 commits into
release-2.7from
alwaysGetDiagnosticsWhenEmittingRelease27

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

Port of #21522 to release-2.7

…aration only emit

The diagnostics reporting and expression resolution caching is quite intermingled at present.
Hence when we tried to get the declaration output without getting diagnostics, the resolution for functions return expression is cached but errors arent reported
Symbols arent marked as referenced. So at later time when trying to get the diagnostics since the expression resolution is cached, it doesnt even go through all checks
For now get diagnostics irrespective of declaration only output to avoid this issue.
Fixes #21518
…hats not possible anymore as the affected files would anyways be semantically checked

This is just part missed during revert of 0b79f4a
@sheetalkamat sheetalkamat merged commit 52df70b into release-2.7 Feb 1, 2018
@sheetalkamat sheetalkamat deleted the alwaysGetDiagnosticsWhenEmittingRelease27 branch February 1, 2018 01:31
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 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.

2 participants