XSharpPublic
XSharpPublic copied to clipboard
Some intellisense issues with generic methods
See comments inline for a few issues with generic methods:
USING System.Collections.Generic
FUNCTION DoTest() AS VOID STRICT
LOCAL dic AS Dictionary<STRING, INT>
LOCAL lis AS List<STRING>
// shows incorrectly two overloads, which are different by one space:
//1. Add(key AS TKey, @@value AS TValue) AS VOID
//2. Add(key AS TKey, @@value AS TValue) AS VOID
// correct would be a single overload, shown with the actual types:
// Add(key AS STRING, value AS INT) AS VOID
dic:Add(
// Shows:
// Add(item AS T) AS VOID
// correct would be
// Add(item AS STRING) AS VOID
lis:Add(
CLASS TestClassNew
PRIVATE dic AS Dictionary<STRING, INT>
EXPORT lis AS List<STRING>
METHOD Test()
SELF:dic: // no member completion shown at all
SELF:lis: // no member completion shown at all
END CLASS