-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
If overloaded methods are declared in a class, one of which is private, and it is declared first, then when you hover the mouse cursor over the method, the description of the private method is displayed. Also, such a method is displayed by the VS editor in the selection list of overload methods available for calling.
Example:
FUNCTION Start() AS VOID STRICT
LOCAL oTestClass AS TestClass
oTestClass := TestClass{}
oTestClass:DoSomething(1)
RETURN
CLASS TestClass
CONSTRUCTOR() STRICT
END CONSTRUCTOR
/// <summary>Private DoSomething.</summary>
HIDDEN METHOD DoSomething(nParam1 AS INT, nParam2 AS INT) AS VOID STRICT
RETURN
/// <summary>Public DoSomething.</summary>
METHOD DoSomething(nParam1 AS INT) AS VOID STRICT
RETURN
END CLASS
If you declare a public method first, then the display of tooltips and the overload selection list become correct (without the private method).
Environment:
X# 2.14.0.4
VS 2019

