#1 2018-10-26 09:07:30

fravemel
Member
Registered: 2018-08-08
Posts: 5

Solve Generics Error compiling ThirdPartyDemos\George\REST-tester

Just in case it could help someone:

In windows 7 and windows 10 (NewPacal and Lazarus 2.1rc1 fpc 3.3.1) both and Mormot 1.8.
If you compile Samples\ThirdPartyDemos\George\REST-tester and get generics.collections.pas(506,51) Error: Generics without specialization cannot be used as a type for a variable .
Just replace generics-collections\src whit the one from https://github.com/maciej-izak/generics.collections and voila problem solved.

My sincere thansk an admiration to ab and mormot community.

Offline

#2 2018-10-26 20:41:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Solve Generics Error compiling ThirdPartyDemos\George\REST-tester

I guess this sample is for Delphi only.
It is a third-party sample, so it is not maintained...
Any input is welcome!

Offline

#3 2018-10-30 16:47:29

JD
Member
Registered: 2015-08-20
Posts: 118

Re: Solve Generics Error compiling ThirdPartyDemos\George\REST-tester

Thanks for the tip. I was wondering why it was no longer possible to compile the sample as it was in the past versions of mORMot.

Offline

Board footer

Powered by FluxBB