fix #1598
This commit is contained in:
parent
3670ff6aff
commit
bed2a15a6c
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
||||||
public const string Major = "3";
|
public const string Major = "3";
|
||||||
public const string Minor = "4";
|
public const string Minor = "4";
|
||||||
public const string Build = "2";
|
public const string Build = "2";
|
||||||
public const string Revision = "1898";
|
public const string Revision = "1899";
|
||||||
|
|
||||||
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%=4
|
|
||||||
%REVISION%=1898
|
|
||||||
%COREVERSION%=2
|
%COREVERSION%=2
|
||||||
|
%REVISION%=1899
|
||||||
|
%MINOR%=4
|
||||||
%MAJOR%=3
|
%MAJOR%=3
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
!define VERSION '3.4.2.1898'
|
!define VERSION '3.4.2.1899'
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,11 @@ namespace SyntaxVisitors
|
||||||
var pcName = pcIdent.name.ToLower();
|
var pcName = pcIdent.name.ToLower();
|
||||||
if (pcName == "break")
|
if (pcName == "break")
|
||||||
{
|
{
|
||||||
Replace(pc, this.GotoBreak);
|
ReplaceUsingParent(pc, this.GotoBreak);
|
||||||
}
|
}
|
||||||
else if (pcName == "continue")
|
else if (pcName == "continue")
|
||||||
{
|
{
|
||||||
Replace(pc, this.GotoContinue);
|
ReplaceUsingParent(pc, this.GotoContinue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
TestSuite/yield_break2.pas
Normal file
12
TestSuite/yield_break2.pas
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
function f1: sequence of byte;
|
||||||
|
begin
|
||||||
|
while true do
|
||||||
|
begin
|
||||||
|
yield 1;
|
||||||
|
break;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Assert(f1.First=1);
|
||||||
|
end.
|
||||||
Loading…
Reference in a new issue