mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 08:48:08 +02:00
fcl-passrc: resolver: allow constref
git-svn-id: trunk@43688 -
This commit is contained in:
parent
94f77251e4
commit
200c3b9390
@ -8364,7 +8364,7 @@ procedure TPasResolver.FinishArgument(El: TPasArgument);
|
||||
var
|
||||
IsDelphi: Boolean;
|
||||
begin
|
||||
if not (El.Access in [argDefault,argConst,argVar,argOut]) then
|
||||
if not (El.Access in [argDefault,argConst,argVar,argOut,argConstRef]) then
|
||||
RaiseMsg(20191018235644,nNotYetImplemented,sNotYetImplemented,[AccessDescriptions[El.Access]],El);
|
||||
if El.ArgType<>nil then
|
||||
CheckUseAsType(El.ArgType,20190123100049,El);
|
||||
|
@ -383,7 +383,7 @@ type
|
||||
// procs
|
||||
Procedure TestProcParam;
|
||||
Procedure TestProcParamAccess;
|
||||
Procedure TestProcParamConstRefFail;
|
||||
Procedure TestProcParamConstRef;
|
||||
Procedure TestFunctionResult;
|
||||
Procedure TestProcedureResultFail;
|
||||
Procedure TestProc_ArgVarPrecisionLossFail;
|
||||
@ -6129,14 +6129,15 @@ begin
|
||||
ParseProgram;
|
||||
end;
|
||||
|
||||
procedure TTestResolver.TestProcParamConstRefFail;
|
||||
procedure TTestResolver.TestProcParamConstRef;
|
||||
begin
|
||||
StartProgram(false);
|
||||
Add('procedure Run(constref a: word);');
|
||||
Add('begin');
|
||||
Add('end;');
|
||||
Add('begin');
|
||||
CheckResolverException('not yet implemented: constref',nNotYetImplemented);
|
||||
Add([
|
||||
'procedure Run(constref a: word);',
|
||||
'begin',
|
||||
'end;',
|
||||
'begin']);
|
||||
ParseProgram;
|
||||
end;
|
||||
|
||||
procedure TTestResolver.TestFunctionResult;
|
||||
|
Loading…
Reference in New Issue
Block a user