mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 20:09:27 +02:00
+ 291
This commit is contained in:
parent
4c42fc0a92
commit
5c391dc7e9
25
bugs/bug0291.pp
Normal file
25
bugs/bug0291.pp
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{$mode tp}
|
||||||
|
|
||||||
|
function ReturnString: string;
|
||||||
|
begin
|
||||||
|
ReturnString := 'A string';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure AcceptString(S: string);
|
||||||
|
begin
|
||||||
|
WriteLn('Got: ', S);
|
||||||
|
end;
|
||||||
|
|
||||||
|
type
|
||||||
|
TStringFunc = function: string;
|
||||||
|
|
||||||
|
const
|
||||||
|
SF: TStringFunc = ReturnString;
|
||||||
|
var
|
||||||
|
S2: TStringFunc;
|
||||||
|
begin
|
||||||
|
@S2:=@ReturnString;
|
||||||
|
AcceptString(ReturnString);
|
||||||
|
AcceptString(SF);
|
||||||
|
AcceptString(S2);
|
||||||
|
end.
|
@ -339,6 +339,7 @@ Fixed bugs:
|
|||||||
bug0286.pp #$08d not allowed as Char constant OK 0.99.13 (PFV)
|
bug0286.pp #$08d not allowed as Char constant OK 0.99.13 (PFV)
|
||||||
bug0287.pp (true > false) not supported OK 0.99.13 (PFV)
|
bug0287.pp (true > false) not supported OK 0.99.13 (PFV)
|
||||||
bug0288.pp crash with virtual method in except part OK 0.99.13 (PFV)
|
bug0288.pp crash with virtual method in except part OK 0.99.13 (PFV)
|
||||||
|
bug0291.pp @procvar in tp mode bugs OK 0.99.13 (PFV)
|
||||||
|
|
||||||
Unproducable bugs:
|
Unproducable bugs:
|
||||||
------------------
|
------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user