mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 10:45:58 +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)
|
||||
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)
|
||||
bug0291.pp @procvar in tp mode bugs OK 0.99.13 (PFV)
|
||||
|
||||
Unproducable bugs:
|
||||
------------------
|
||||
@ -378,4 +379,4 @@ bug0275.pp too many warnings
|
||||
bug0277.pp typecasting with const not possible
|
||||
bug0281.pp dup id checking with property is wrong
|
||||
bug0289.pp no hint/note for unused types
|
||||
bug0290.pp problem with storing hex numbers in integers
|
||||
bug0290.pp problem with storing hex numbers in integers
|
||||
|
Loading…
Reference in New Issue
Block a user