mmikeww / AHK-v2-script-converter

AHK v1 -> v2 script converter
https://autohotkey.com/boards/viewtopic.php?f=6&t=25100
The Unlicense
580 stars 44 forks source link

Legacy assignment for static variables is not converted #295

Closed Banaanae closed 3 weeks ago

Banaanae commented 1 month ago

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 commented 1 month ago

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