This commit is contained in:
Mikhalkovich Stanislav 2019-06-09 08:50:40 +03:00
parent 8b87443ed9
commit 4610ce28e4
5 changed files with 22 additions and 5 deletions

View file

@ -15,7 +15,7 @@ internal static class RevisionClass
public const string Major = "3";
public const string Minor = "5";
public const string Build = "0";
public const string Revision = "2094";
public const string Revision = "2095";
public const string MainVersion = Major + "." + Minor;
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;

View file

@ -1,4 +1,4 @@
%COREVERSION%=0
%REVISION%=2094
%MINOR%=5
%REVISION%=2095
%COREVERSION%=0
%MAJOR%=3

View file

@ -1 +1 @@
!define VERSION '3.5.0.2094'
!define VERSION '3.5.0.2095'

View file

@ -26,7 +26,7 @@ namespace PascalABCCompiler.SyntaxTreeConverters
public override void visit(foreach_stmt fe)
{
if (fe.DescendantNodes().OfType<function_lambda_definition>().Count() > 0)
//if (fe.DescendantNodes().OfType<function_lambda_definition>().Count() > 0) // из-за #1984 убрал вообще условие. Пусть будет всегда
{
var id = GenIdentName();
id.Parent = fe;

View file

@ -0,0 +1,17 @@
type
t1 = class
s := Seq&<byte>(2,2,2);
procedure p1;
begin
var p: procedure := ()->
begin
foreach var tsk in s do
Assert(tsk=2)
end;
p;
end;
end;
begin
t1.Create.p1
end.