fix #2027
This commit is contained in:
parent
03d0f5486b
commit
2575d8a335
14
TestSuite/lambda_static_meth_def_outof_class.pas
Normal file
14
TestSuite/lambda_static_meth_def_outof_class.pas
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
type A = class
|
||||||
|
static function X := 1;
|
||||||
|
static procedure p;
|
||||||
|
end;
|
||||||
|
|
||||||
|
static procedure A.p;
|
||||||
|
begin
|
||||||
|
var s := X;
|
||||||
|
ArrGen(10,i->i);
|
||||||
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
@ -286,7 +286,7 @@ namespace TreeConverter.LambdaExpressions.Closure
|
||||||
else id1 = new ident(cname.name, cname.source_context);
|
else id1 = new ident(cname.name, cname.source_context);
|
||||||
dot_node dn = new dot_node(id1, new ident(id.name, id.source_context), id.source_context);
|
dot_node dn = new dot_node(id1, new ident(id.name, id.source_context), id.source_context);
|
||||||
id.Parent.ReplaceDescendantUnsafe(id, dn);
|
id.Parent.ReplaceDescendantUnsafe(id, dn);
|
||||||
ProcessNode(id.Parent);
|
ProcessNode(dn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue