fpc/tests/webtbf/tw17341.pp
Jonas Maebe 3a089cea10 * give an error when trying to let an objcclass conform to a
forward-declared objcprotocol (mantis #17341)

git-svn-id: trunk@16523 -
2010-12-08 22:17:24 +00:00

18 lines
251 B
ObjectPascal

{ %fail }
{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm }
{$mode objfpc}
{$modeswitch objectivec1}
type
tmyprotocol = objcprotocol;
tmyclass = objcclass(NSObject,tmyprotocol)
end;
tmyprotocol = objcprotocol
end;
begin
end.