fpc/tests/tbf/tb0250.pp
svenbarth 5115c3e680 Fix for Mantis #26481. This is a regression.
nutils.pas, handle_staticfield_access:
  * generics don't have staticvarsyms for their static fieldvarsyms so we need to simulate a non-static access to avoid 1) an exception and 2) incorrect errors that instance methods can't be accessed

+ added tests

git-svn-id: trunk@29484 -
2015-01-16 16:05:53 +00:00

23 lines
195 B
ObjectPascal

{ %FAIL }
program tb0250;
{$mode delphi}
type
TTest<T> = class
class var
fTest: TClass;
procedure Test;
end;
procedure TTest<T>.Test;
begin
fTest.ToString;
end;
begin
end.