Skip to content

array of T not considered as a managed type inside generics

Summary

array of T not considered as a managed type inside generics

System Information

  • Compiler version: trunk

Steps to reproduce

program Project1;
{$mode objfpc}{$H+}
const
  ts=3;
type
  generic GTest<T>=record
    case byte of
    0:(ta:array [0..2] of T);
    1:(t1:T;t2:T;t3:T);
  end;
begin
end.  

Сompiler allowed array of T, but stop on t1:T But these types may be managed

Edited by Sven/Sarah Barth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information