Browse Source

* Test for cascaded types

git-svn-id: trunk@47502 -
(cherry picked from commit ce40a219ba0bc17167459e4d6b490a5c07981128)
michael 4 years ago
parent
commit
405cda03a3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-passrc/tests/tcgenerics.pas

+ 2 - 0
packages/fcl-passrc/tests/tcgenerics.pas

@@ -110,6 +110,8 @@ begin
   Source.Add('    b : T;');
   Source.Add('    b : T;');
   Source.Add('    b2 : T2;');
   Source.Add('    b2 : T2;');
   Source.Add('    FItems: ^TArray<T>;');
   Source.Add('    FItems: ^TArray<T>;');
+  Source.Add('  type');
+  Source.Add('    TDictionaryEnumerator = TDictionary<T, TEmptyRecord>.TKeyEnumerator;');
   Source.Add('  end;');
   Source.Add('  end;');
   ParseDeclarations;
   ParseDeclarations;
   AssertNotNull('have generic definition',Declarations.Classes);
   AssertNotNull('have generic definition',Declarations.Classes);