Constants in generics (with sets in units) cause compiler error
Original Reporter info from Mantis: ryan_joseph @genericptr
-
Reporter name: Ryan Joseph
Original Reporter info from Mantis: ryan_joseph @genericptr
- Reporter name: Ryan Joseph
Description:
"Compilation raised exception" with set constants in generics IF the generic is part of a unit (programs are fine). Maybe a bug in the PPU loading?
Steps to reproduce:
{$mode objfpc}
unit test;
interface
type
TOption = (A);
TOptions = set of TOption;
type
generic TType<T; const U: TOptions> = class
end;
// error: Compilation raised exception
implementation
end.
Mantis conversion info:
- Mantis ID: 37014
- Version: 3.3.1