XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

No member list shown for the result of a generic method

Open cpyrgas opened this issue 2 years ago • 2 comments

When typing a colon after a generic method call, there is no member list shown:

CLASS TestClass
    METHOD DoSomething() AS STRING STRICT
        SELF:DoSomething(): // member list showing
        SELF:DoSomethingGeneric<INT>(1) // NO member list
        SELF:DoSomethingGeneric(1): // NO member list
        
    METHOD DoSomethingGeneric<T>(x AS T) AS T STRICT
		RETURN x
END CLASS

cpyrgas avatar Jul 09 '23 08:07 cpyrgas

All three do not show a completionlist in XIDE too. For SELF:DoSomethingGeneric<INT>(1):

we could derive that T is INT and then show members of type INT but for

SELF:DoSomethingGeneric(1):

we need to 'guess' that the type of T is INT, because the parameter is a literal 1.

That requires some work. I will not fix that in this build.

RobertvanderHulst avatar Aug 27 '24 10:08 RobertvanderHulst

I know, it's also on my list :) Somebody must had reported it directly to me for VS, so I opened a ticket for it.

cpyrgas avatar Aug 27 '24 11:08 cpyrgas