I connected the SuperObject module to the project to parse JSON.

procedure TForm1.Button1Click(Sender: TObject); var Json: ISuperObject; begin Json := SO(Memo1.Text); end; 

When compiling this error:

[DCC Error] Generics.Collections.pas (1679): E2250 [DCC Fatal Error] Generics.Defaults.pas (111): F2063 Could not compile used unit 'Generics.Collections'

  • Is the JSON text valid? The error for some reason inside the generics, and not in your code .. - Kromster
  • Valid, but it does not matter, because before the compilation it does not reach. - Artem
  • 3
    In the regular D2010, on line 1679, there is no smell of any constructor, there is an implementation of the function TDictionary<TKey, TValue>.TPairEnumerator.DoGetCurrent . Try to make a build project, most likely - Delphi will show the line in the module itself, which can not compile. Perhaps this Generics.Collections is not from the standard delivery. - kami

0