E2134 Type '%s' has no type info (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

You have applied the TypeInfo standard procedure to a type identifier which does not have any run-time type information associated with it.


program Produce;
  var
    v : Pointer;

begin
  v := TypeInfo(TextFile);
end.

TextFile type do not generate type information, so this use of TypeInfo is illegal.