fpc/tests/webtbf/tw9522e.pp
Jonas Maebe 1ee8207ffa * fixed mantis #9522: no longer allow typecasting ordinal constants
to complex types (caused a lot of internal errors later on, and
    was also Delphi-incompatible)

git-svn-id: trunk@8369 -
2007-09-03 15:55:26 +00:00

9 lines
88 B
ObjectPascal

{ %fail }
type
tobj = object b : byte; end;
begin
writeln(tobj(65).b);
end.