fpc/tests/test/uobjc30c.pp
Jonas Maebe af85e45b67 + support for id.anyobjcmethodinscope() calls for Objective-Pascal code,
using standard FPC overload selection logic
  * fixed detection of references to static symbol tables for class
    helpers

git-svn-id: trunk@14234 -
2009-11-21 00:14:21 +00:00

25 lines
359 B
ObjectPascal

{$mode objfpc}
{$modeswitch objectivec1}
{ Written by Jonas Maebe in 2009, released into the public domain }
unit uobjc30c;
interface
type
ta = objcclass(NSObject)
field: longint;
function mytest(c: char): longint; message 'mystest:';
end;
implementation
function ta.mytest(c: char): longint;
begin
writeln(c);
result:=field;
end;
end.