Traditional Synergy Compiler Should Support Error Similar to CS00021
Consider the following invalid program:
import System.Collections main record myList ,@ArrayList endrecord proc myList= new ArrayList() myList.RemoveAt[3] endmainWhen attempting to compile this you get this error:
%DBL-E-NFND, myList.RemoveAt[D] not found : myList.RemoveAt[3]Now compare this to what you would get in C#
private void Test() { List<string> myList = new List<string>(); myList.RemoveAt[1]; }
CS0021 Cannot apply indexing with [] to an expression of type 'method group'
Which has wonderful documentation applied to it: https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0021
Please log in to comment on this idea.