mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 07:58:04 +02:00

- add tarraysymtable to store generic type symbols - process generic and specialize declarations similar to generic records and classes - fix insert_generic_parameter_types to use def passed in argument instead of current_structdef because generic array type can't be assigned to the current_structdef variable - increase ppu version because of arraydef changes - tests git-svn-id: trunk@16681 -
11 lines
141 B
ObjectPascal
11 lines
141 B
ObjectPascal
{$mode objfpc}
|
|
|
|
type
|
|
generic TMyArray<T> = array[0..10] of longint;
|
|
|
|
var
|
|
MyArr: specialize TMyArray<String>;
|
|
begin
|
|
MyArr[0] := 1;
|
|
end.
|