fix #1449
This commit is contained in:
parent
c7f77db426
commit
fbd3aa98ac
15
TestSuite/lambdas_closures_15_const.pas
Normal file
15
TestSuite/lambdas_closures_15_const.pas
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
procedure p1;
|
||||||
|
const
|
||||||
|
c1 = ' ';
|
||||||
|
begin
|
||||||
|
var p: procedure := ()->
|
||||||
|
begin
|
||||||
|
var s := c1;
|
||||||
|
Assert(s=' ');
|
||||||
|
end;
|
||||||
|
p;
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
p1;
|
||||||
|
end.
|
||||||
|
|
@ -166,6 +166,7 @@ namespace TreeConverter.LambdaExpressions.Closure
|
||||||
si.sym_info.semantic_node_type == semantic_node_type.template_type ||
|
si.sym_info.semantic_node_type == semantic_node_type.template_type ||
|
||||||
si.sym_info.semantic_node_type == semantic_node_type.generic_indicator ||
|
si.sym_info.semantic_node_type == semantic_node_type.generic_indicator ||
|
||||||
si.sym_info.semantic_node_type == semantic_node_type.class_constant_definition ||
|
si.sym_info.semantic_node_type == semantic_node_type.class_constant_definition ||
|
||||||
|
si.sym_info.semantic_node_type == semantic_node_type.function_constant_definition || // SSM 03.11.18 bug fix #1449
|
||||||
si.sym_info.semantic_node_type == semantic_node_type.basic_function_node && (idName == "exit" || idName == "continue" || idName == "break"))
|
si.sym_info.semantic_node_type == semantic_node_type.basic_function_node && (idName == "exit" || idName == "continue" || idName == "break"))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue