XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

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

Open cpyrgas opened this issue 1 year ago • 0 comments

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

cpyrgas avatar Jun 04 '24 11:06 cpyrgas