fpc/tests/tbs/tb0188a.pp
paul 55a0fefb1f compiler: implement generic array type:
- 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 -
2011-01-02 13:16:17 +00:00

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.