Browse Source

* typeof(classref) fix

peter 22 years ago
parent
commit
a08ec3a9b2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/webtbs/tw2318.pp
  2. 1 1
      tests/webtbs/tw2318b.pp

+ 1 - 1
tests/webtbs/tw2318.pp

@@ -17,7 +17,7 @@ End;
 
 
 Function tObject.GetVMT:Pointer;
 Function tObject.GetVMT:Pointer;
 Begin
 Begin
-  GetVMT:=Typeof(self);
+  GetVMT:=self;
 End;
 End;
 
 
 
 

+ 1 - 1
tests/webtbs/tw2318b.pp

@@ -20,7 +20,7 @@ End;
 
 
 Function tObject.GetVMT:Pointer;
 Function tObject.GetVMT:Pointer;
 Begin
 Begin
-  GetVMT:=Typeof(self);
+  GetVMT:=self;
 End;
 End;