Browse Source

Mantis #24072 was fixed by partial specializations addition in revision 27861

+ added test

git-svn-id: trunk@27878 -
svenbarth 11 years ago
parent
commit
6f962e817a
2 changed files with 25 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 24 0
      tests/webtbs/tw24072.pp

+ 1 - 0
.gitattributes

@@ -13848,6 +13848,7 @@ tests/webtbs/tw2397.pp svneol=native#text/plain
 tests/webtbs/tw23980.pp svneol=native#text/pascal
 tests/webtbs/tw24007.pp svneol=native#text/plain
 tests/webtbs/tw24071.pp svneol=native#text/pascal
+tests/webtbs/tw24072.pp svneol=native#text/pascal
 tests/webtbs/tw2409.pp svneol=native#text/plain
 tests/webtbs/tw24129.pp svneol=native#text/pascal
 tests/webtbs/tw24131.pp svneol=native#text/plain

+ 24 - 0
tests/webtbs/tw24072.pp

@@ -0,0 +1,24 @@
+{ %NORUN }
+
+program tw24072;
+
+{$mode delphi}
+
+type
+  TA<T> = record
+  end;
+
+  TB<T> = class
+  public
+    type
+      TC = TA<T>;
+
+      TD = record
+        Foo: TC; // ! FATAL !
+      end;
+  end;
+
+var
+  t: TB<LongInt>;
+begin
+end.