Răsfoiți Sursa

* Classes no longer needed.

michael 26 ani în urmă
părinte
comite
b37fc98b9e
1 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 4 3
      tests/testrtti.pp

+ 4 - 3
tests/testrtti.pp

@@ -1,5 +1,7 @@
 Program testrtti;
 
+Uses Typinfo;
+
 {$M+}
 
 Uses
@@ -17,9 +19,8 @@ Const TypeNames : Array [TTYpeKind] of string[15] =
 Const OrdinalTypes = [tkInteger,tkChar,tkENumeration,tkbool];
 
 Type
-      TMyEnum = (meFirst,meSecond,meThird);
-
-Type TMyTestObject = Class
+   TMyEnum = (meFirst,meSecond,meThird);
+   TMyTestObject = Class(TObject)
        Private
        FBoolean  : Boolean;
        FByte     : Byte;