Исправление var (x,y) := a[1:3];
This commit is contained in:
parent
450e629598
commit
e4a0a33d3e
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
||||||
public const string Major = "3";
|
public const string Major = "3";
|
||||||
public const string Minor = "8";
|
public const string Minor = "8";
|
||||||
public const string Build = "0";
|
public const string Build = "0";
|
||||||
public const string Revision = "2899";
|
public const string Revision = "2901";
|
||||||
|
|
||||||
public const string MainVersion = Major + "." + Minor;
|
public const string MainVersion = Major + "." + Minor;
|
||||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%MINOR%=8
|
%MINOR%=8
|
||||||
%REVISION%=2899
|
%REVISION%=2901
|
||||||
%COREVERSION%=0
|
%COREVERSION%=0
|
||||||
%MAJOR%=3
|
%MAJOR%=3
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
3.8.0.2899
|
3.8.0.2901
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
!define VERSION '3.8.0.2899'
|
!define VERSION '3.8.0.2901'
|
||||||
|
|
|
||||||
|
|
@ -53,12 +53,12 @@ namespace PascalABCCompiler.SyntaxTreeConverters
|
||||||
// index
|
// index
|
||||||
IndexVisitor.New.ProcessNode(root);
|
IndexVisitor.New.ProcessNode(root);
|
||||||
|
|
||||||
|
// slice_expr и slice_expr_question
|
||||||
|
SliceDesugarVisitor.New.ProcessNode(root); // поставил раньше AssignTuplesDesugarVisitor из за var (a,b) := a[1:3];
|
||||||
|
|
||||||
// assign_tuple и assign_var_tuple
|
// assign_tuple и assign_var_tuple
|
||||||
AssignTuplesDesugarVisitor.New.ProcessNode(root); // теперь это - на семантике
|
AssignTuplesDesugarVisitor.New.ProcessNode(root); // теперь это - на семантике
|
||||||
|
|
||||||
// slice_expr и slice_expr_question
|
|
||||||
SliceDesugarVisitor.New.ProcessNode(root);
|
|
||||||
|
|
||||||
|
|
||||||
// question_point_desugar_visitor
|
// question_point_desugar_visitor
|
||||||
QuestionPointDesugarVisitor.New.ProcessNode(root);
|
QuestionPointDesugarVisitor.New.ProcessNode(root);
|
||||||
|
|
|
||||||
5
TestSuite/var_tuple_and_slice.pas
Normal file
5
TestSuite/var_tuple_and_slice.pas
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
begin
|
||||||
|
var a := Arr(1,2,3);
|
||||||
|
var (k,m) := a[1:3];
|
||||||
|
Assert((k=2) and (m=3));
|
||||||
|
end.
|
||||||
Loading…
Reference in a new issue