* test from mantis #22796 (already works)

git-svn-id: trunk@22394 -
This commit is contained in:
Jonas Maebe 2012-09-15 13:40:17 +00:00
parent fde944bf5d
commit e4956552de
2 changed files with 25 additions and 0 deletions

1
.gitattributes vendored
View File

@ -12823,6 +12823,7 @@ tests/webtbs/tw2274.pp svneol=native#text/plain
tests/webtbs/tw22741.pp svneol=native#text/plain
tests/webtbs/tw22744.pp svneol=native#text/pascal
tests/webtbs/tw2277.pp svneol=native#text/plain
tests/webtbs/tw22796.pp svneol=native#text/plain
tests/webtbs/tw2280.pp svneol=native#text/plain
tests/webtbs/tw22860.pp svneol=native#text/plain
tests/webtbs/tw22864.pp svneol=native#text/pascal

24
tests/webtbs/tw22796.pp Normal file
View File

@ -0,0 +1,24 @@
program CompileError;
{$mode delphi}{$H+}
//uses Classes;
type
TWordTagValue = record
strict private
FValue: Word;
FMissingOrInvalid: Boolean; // Try to disable this line !
public
class function CreateFromString(const AString: string): TWordTagValue; static;
property Value: Word read FValue;
end;
class function TWordTagValue.CreateFromString(const AString: string): TWordTagValue;
begin
Result.FValue := 0;
end;
begin
end.