X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
89 stars 36 forks source link

VFP: Bogus warning when calling a function with /fox2+ #1476

Open cpyrgas opened 1 month ago

cpyrgas commented 1 month ago

Following results to 3 bogus warnings on using the Test() function. It is reported only when all 3 compiler options memvar, undeclared and fox2 are enabled

// warning XS9073: Variable 'Test' has not been declared. Assuming this is a FIELD or a MEMVAR.

// /memvar+ /undeclared+ /fox2+
FUNCTION Start() AS VOID
LOCAL u := 123
? Test(u)
? Test(Test(u))

FUNCTION Test(u)
RETURN u