This commit is contained in:
Бондарев Иван 2018-11-26 20:33:49 +01:00
parent 4f55fe8509
commit 34c8132234
2 changed files with 8 additions and 1 deletions

View file

@ -2724,7 +2724,7 @@ namespace PascalABCCompiler.Parsers
kav.Push('\'');
sb.Insert(0, ch);//.Append(Text[i]);
}
else if (ch == '.' || ch == '^' || ch == '&' || ch == '?')
else if (ch == '.' || ch == '^' || ch == '&' || ch == '?' && IsPunctuation(Text, i + 1))
{
if (ch == '.' && i >= 1 && Text[i - 1] == '.')
end = true;

View file

@ -0,0 +1,7 @@
function f1<T>(self: sequence of T; f: T->T): sequence of T; extensionmethod := self;
begin
Arr(0)
.f1(i -> 0=0?0:0 )
.f1{@(расширение sequence of T) function f1<T>(f: T->T): sequence of T;@}(i->i)
end.