소스 검색

* Wrong file copied

Michaël Van Canneyt 1 년 전
부모
커밋
429d04089e
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      tests/test/texrtti18.pp

+ 8 - 8
tests/test/texrtti18.pp

@@ -1,10 +1,10 @@
-program texrtti17;
+program texrtti18;
 
-{$mode objfpc}
+{ Test that array properties do not appear in the list of RTTI properties }
 
-{ Test that class properties are not returned in RTTI }
+{$mode objfpc}
 
-uses typinfo, uexrttiutil;
+uses TypInfo, uexrttiutil;
 
 {$RTTI INHERIT
        METHODS(DefaultMethodRttiVisibility)
@@ -14,15 +14,15 @@ uses typinfo, uexrttiutil;
 
 Type
   T1 = Class(TObject)
-    class function getsomething : integer; static;
-    class property Something : Integer Read GetSomething;
+    function getsomething(aIndex : Integer) : TObject;
+    property Something[a: Integer] : TObject Read GetSomething;
   end;
 
 
-class function T1.getsomething : integer;
+function T1.getsomething(aIndex : Integer) : TObject;
 
 begin
-  Result:=0;
+  Result:=Nil;
 end;
 
 var