fpc/tests/webtbf/tw25915.pp
svenbarth c5050ea645 Forgot to commit test mentioned in last commit
git-svn-id: trunk@27465 -
2014-04-04 16:10:08 +00:00

22 lines
377 B
ObjectPascal

{ %FAIL }
{$MODE OBJFPC}
program tw25915;
type
TTestClass = class
FS: AnsiString;
procedure TestMethod();
end;
procedure TTestClass.TestMethod();
begin
FS := Default(FS); // 'Error: Identifier not found "FS"' and 'Error: Type identifier expected'
end;
var
S: AnsiString;
begin
S := Default(S); // two times 'Error: Type identifier expected'
end.