You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLASS TestClass
METHOD Test() AS LOGIC // with /vo5 enabled or with explicit CLIPPER clause
RETURN FALSE
METHOD Test(n AS INT) AS VOID
END CLASS
Above produces error message error XS0111: Type 'TestClass' already defines a member called 'Test' with the same parameter types
But the message is misleading, the parameter types are not the same, the error should point out that a method cannot have a CLIPPER and a STRICT overload. I think I remember that in the past indeed such a more informative error was reported, but I am not sure.
Also the error is reported only when the STRICT method has a single parameter. When there are more than one, then there is no error reported at all:
// no compiler error
CLASS TestClass
METHOD Test() AS LOGIC CLIPPER
RETURN FALSE
METHOD Test(n AS INT, c AS STRING) AS VOID STRICT
END CLASS
Shouldn't there be a compiler error reported also in this case because of the CLIPPER/STRICT overloading?
The text was updated successfully, but these errors were encountered:
https://www.xsharp.eu/forum/topic?p=28449#p28449
Above produces error message error XS0111: Type 'TestClass' already defines a member called 'Test' with the same parameter types
But the message is misleading, the parameter types are not the same, the error should point out that a method cannot have a CLIPPER and a STRICT overload. I think I remember that in the past indeed such a more informative error was reported, but I am not sure.
Also the error is reported only when the STRICT method has a single parameter. When there are more than one, then there is no error reported at all:
Shouldn't there be a compiler error reported also in this case because of the CLIPPER/STRICT overloading?
The text was updated successfully, but these errors were encountered: