btw, is there any workaround for this?Code: Pascal [Select][+][-]IFoo<T> = Interface(IInterface) //YES, interface, NOT class Procedure Bar(AFoo: ISomeList<TSomeClass<T>>); //SEE ISomeList<TSomeClass<T>>End;
Quote from: ExSystem on April 11, 2016, 04:48:50 ambtw, is there any workaround for this?Code: Pascal [Select][+][-]IFoo<T> = Interface(IInterface) //YES, interface, NOT class Procedure Bar(AFoo: ISomeList<TSomeClass<T>>); //SEE ISomeList<TSomeClass<T>>End; What workaround? Please describe the problem along with full short compilable code. This:Code: Pascal [Select][+][-]{$mode delphi} type TSomeClass<T> = class end; ISomeList<T> = interface end; IFoo<T> = Interface(IInterface) //YES, interface, NOT class Procedure Bar(AFoo: ISomeList<TSomeClass<T>>); //SEE ISomeList<TSomeClass<T>> End; beginend. Compiles.
C:\testing>fpc gtstFree Pascal Compiler version 3.0.0 [2015/11/16] for i386Copyright (c) 1993-2015 by Florian Klaempfl and othersTarget OS: Win32 for i386Compiling gtst.ppgtst.pp(11,46) Error: Identifier not found "specialize"gtst.pp(11,57) Error: Type identifier expectedgtst.pp(11,57) Fatal: Syntax error, "," expected but "identifier TSOMECLASS" foundFatal: Compilation abortedError: C:\fpc\3.0.0\bin\i386-win32\ppc386.exe returned an error exitcode
LAST LINE, char 45( TAssertion<K, R, M> = Function(Acl: TAcl<K<----HERE): Error: Internal error 2015080101