You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code snippet takes the input array and sorts it so that even numbers are first, and then smaller numbers are before larger numbers. It's a minimum repro for a problem I'm having with the VSCode plugin.
array<int> x = {1, 2, 3};
x.Sort(function(a, b) {
if (a %2!= b %2) {
return a %2==0;
}
return a < b;
});
for (uinti=0; i < x.Length; ++i) {
print(x[i]);
}
Code works great.
Problem is, the VSCode plugin complains that it is "unable to parse" on the .Sort function. There's also some pesky red lettering in there.
(Line 30 is the line the .Sort function is on in my code at the moment)
Is this just a limitation of the plugin, or is there something amiss on my end?
The text was updated successfully, but these errors were encountered:
The following code snippet takes the input array and sorts it so that even numbers are first, and then smaller numbers are before larger numbers. It's a minimum repro for a problem I'm having with the VSCode plugin.
Code works great.
Problem is, the VSCode plugin complains that it is "unable to parse" on the .Sort function. There's also some pesky red lettering in there.
(Line 30 is the line the .Sort function is on in my code at the moment)
Is this just a limitation of the plugin, or is there something amiss on my end?
The text was updated successfully, but these errors were encountered: