fpc/tests/webtbf/tw24184.pp
Jonas Maebe 3a03586ca9 * give an error when declaring a class as conforming to a forward-declared
interface: the compiler does not/cannot check whether the class
    implements all required methods in that case, and it moreover leads to
    crashes (mantis ). Older versions of Delphi did allow this (and
    don't check whether the interface methods are implemented either), but
    that's simply a (similar) bug in Delphi that has been fixed in XE at
    least
  * fixed compilation of webtbs/tw2727 after this fix

git-svn-id: trunk@24177 -
2013-04-07 12:18:31 +00:00

17 lines
151 B
ObjectPascal

{ %fail }
{$mode objfpc}
type
ti = interface;
tc = class(tinterfacedobject, ti)
end;
ti = interface
procedure test;
end;
begin
end.