mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 01:30:28 +02:00

using standard FPC overload selection logic * fixed detection of references to static symbol tables for class helpers git-svn-id: trunk@14234 -
25 lines
359 B
ObjectPascal
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.
|