This commit is contained in:
parent
7261231c9c
commit
20edd487e3
9
TestSuite/lambdas25.pas
Normal file
9
TestSuite/lambdas25.pas
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
var
|
||||
f: function: sequence of char :=
|
||||
()-> 'aboba'.Select(x-> x);
|
||||
v: function: function: integer := () -> () -> 1;
|
||||
|
||||
begin
|
||||
assert(f().First = 'a');
|
||||
assert(v()() = 1);
|
||||
end.
|
||||
|
|
@ -2930,7 +2930,8 @@ namespace PascalABCCompiler.TreeConverter
|
|||
#if DEBUG
|
||||
//System.IO.File.AppendAllText("aa.txt", context._cmn.functions[context._cmn.functions.Count - 1].name+"\n");
|
||||
#endif
|
||||
context._cmn.functions.remove_at(context._cmn.functions.Count - 1);
|
||||
context._cmn.functions[context._cmn.functions.Count - 1].function_code = new statements_list(null);
|
||||
//context._cmn.functions.remove_at(context._cmn.functions.Count - 1);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue