Browse Source

* test from mantis #22796 (already works)

git-svn-id: trunk@22394 -
Jonas Maebe 13 years ago
parent
commit
e4956552de
2 changed files with 25 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 24 0
      tests/webtbs/tw22796.pp

+ 1 - 0
.gitattributes

@@ -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 - 0
tests/webtbs/tw22796.pp

@@ -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.
+