dlang / visuald

Visual D - Visual Studio extension for the D programming language
http://rainers.github.io/visuald/visuald/StartPage.html
Boost Software License 1.0
288 stars 70 forks source link

Main function parameters must match one of the signatures #272

Open rikkimax opened 5 months ago

rikkimax commented 5 months ago

User from Discord tried to build an example project and it resulted in an error.

https://github.com/dlang/visuald/blob/master/visuald/Templates/ProjectItems/VDProject/main.d#L14

image

Rename of main function worked.

katastic commented 5 months ago

Fresh install of Visual Studio 2022 and Visual D 1.4.0-rc1, hit new project, x64, DMD+LDC enabled (no dialog options seemed to matter)

rainers commented 5 months ago

Thanks for reporting. dmd 2.100 added this extra check, which is a false positive in this case. I'll rename the function to win_main.