XSharpPublic
XSharpPublic copied to clipboard
No member list shown for the result of a generic method
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
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.
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.