Martin Frb via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am Do., 3. Apr. 2025, 21:35:
> "class of" can use qualified identifiers. It works with "unit.classname". > > But it can't be used on a class nested in another container? > (same if TFoo is advanced record) > > Is that intentional? > > program Project1; > type > TFoo = class > public type > TBar = class end; > end; > > TFooClass = class of Project1.TFoo; > TBarClass = class of TFoo.TBar; /// <<<<<<< ERROR > > begin > > end. > Parsing unit names is different from parsing type names. Please report a bug. Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel