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

Legacy assignment for static variables is not converted #295

Closed
Banaanae opened this issue Oct 3, 2024 · 1 comment
Closed

Legacy assignment for static variables is not converted #295

Banaanae opened this issue Oct 3, 2024 · 1 comment

Comments

@Banaanae
Copy link
Collaborator

Banaanae commented Oct 3, 2024

V1:

MyFunc() {
  static var = 1
  MsgBox % var
}
MyFunc()

V2 (Converted):

MyFunc() {
  static var = 1
  MsgBox(var)
}
MyFunc()

V2 (Expected):

MyFunc() {
  static var := 1
  MsgBox(var)
}
MyFunc()
Banaanae added a commit that referenced this issue Oct 3, 2024
added f tests for #294 #295 #296 #298 #299 #300 #301
cleanup return tests
@Banaanae
Copy link
Collaborator Author

Should note this only occurs in V1 (not v1.1) scripts

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

No branches or pull requests

1 participant