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

Fix incorrect suggestions for state variables #431

Merged
merged 2 commits into from Jul 3, 2019

Conversation

Daniel-Cortez
Copy link
Contributor

What this PR does / why we need it:

Fixes incorrect suggestions for state variables used out of state scope.

Example (from #405):

new var <state_a>;

main()
{
	var = 5;
}

Error message before the fix:

test.pwn(5) : error 017: undefined symbol "var"; did you mean "var"?

After:

test.pwn(5) : error 017: undefined symbol "var"; state variable out of scope

Which issue(s) this PR fixes:

Fixes #405

What kind of pull this is:

  • A Bug Fix
  • A New Feature
  • Some repository meta (documentation, etc)
  • Other

Additional Documentation:

@Daniel-Cortez Daniel-Cortez requested a review from a team as a code owner June 18, 2019 15:11
@Zeex Zeex merged commit ad730d3 into pawn-lang:dev Jul 3, 2019
@Daniel-Cortez Daniel-Cortez deleted the suggestions-fix branch July 3, 2019 12:37
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.

None yet

2 participants