fpc/tests/test/ugeneric93a.pp
svenbarth d49b4043ab Implement DECLARED() for generic symbols. This fixes Mantis #21829 . The syntax is SomeGenericType<> for a generic with only one type parameter and SomeGeneric<,[,]*> for a generic with more than one type parameter. Spaces between the commas or brackets are allowed.
scanner.pas, parse_compiler_expr.read_factor:
  + allow "<>" after "declared" (handle "<>" operator specially)
  + count "," to get correct amount of type parameters
  + check together with the count string for symbols 
  + correctly handle dummy symbols

+ added tests

git-svn-id: trunk@23544 -
2013-01-30 16:10:15 +00:00

28 lines
217 B
ObjectPascal

unit ugeneric93a;
{$mode delphi}
interface
type
TTestDelphi<T> = class
end;
TTestDelphi<T, S, R> = class
end;
TTest2Delphi = class
end;
TTest2Delphi<T, S> = class
end;
implementation
end.