Исправление бага со слайсами в 3.6.3

This commit is contained in:
Mikhalkovich Stanislav 2020-05-05 16:15:44 +03:00
parent bdda5117d9
commit ec29e42978
6 changed files with 14 additions and 7 deletions

View file

@ -15,7 +15,7 @@ internal static class RevisionClass
public const string Major = "3";
public const string Minor = "6";
public const string Build = "3";
public const string Revision = "2446";
public const string Revision = "2447";
public const string MainVersion = Major + "." + Minor;
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;

View file

@ -1,4 +1,4 @@
%COREVERSION%=3
%REVISION%=2446
%MINOR%=6
%REVISION%=2447
%COREVERSION%=3
%MAJOR%=3

View file

@ -1 +1 @@
3.6.3.2446
3.6.3.2447

View file

@ -1 +1 @@
!define VERSION '3.6.3.2446'
!define VERSION '3.6.3.2447'

View file

@ -72,8 +72,8 @@ namespace SyntaxVisitors.SugarVisitors
}
public override void visit(assign _assign)
{
Exit(_assign.from);
Exit(_assign.to);
ProcessNode(_assign.from);
ProcessNode(_assign.to);
}
public void ProceedSliceExpr(slice_expr sl)

View file

@ -0,0 +1,7 @@
begin
var x:= Arr(1..5);
x := x[:2] + x;
Assert(x.SequenceEqual(Arr(1,2,1,2,3,4,5)));
x := x?[:2] + x;
Assert(x.SequenceEqual(Arr(1,2,1,2,1,2,3,4,5)));
end.