Browse Source

* fix declarations; these only worked by accident and will no longer work after the next commit of mine

git-svn-id: trunk@34533 -
svenbarth 9 years ago
parent
commit
e4f1b15860

+ 1 - 1
packages/rtl-generics/src/generics.collections.pas

@@ -522,7 +522,7 @@ begin
   end;
 end;
 
-function TEnumerable<T>.GetEnumerator: TEnumerator;
+function TEnumerable<T>.GetEnumerator: TEnumerator<T>;
 begin
   Exit(DoGetEnumerator);
 end;

+ 1 - 1
packages/rtl-generics/src/inc/generics.dictionaries.inc

@@ -163,7 +163,7 @@ begin
   Result := TCustomDictionary<CUSTOM_DICTIONARY_CONSTRAINTS>(FDictionary).Count;
 end;
 
-function TDictionaryEnumerable<TDictionaryEnumerator, T, CUSTOM_DICTIONARY_CONSTRAINTS>.ToArray: TArray;
+function TDictionaryEnumerable<TDictionaryEnumerator, T, CUSTOM_DICTIONARY_CONSTRAINTS>.ToArray: TArray<T>;
 begin
   Result := ToArrayImpl(FDictionary.Count);
 end;