Index: BasicCompiler64/CParameter.cpp
===================================================================
--- BasicCompiler64/CParameter.cpp	(revision 56)
+++ BasicCompiler64/CParameter.cpp	(revision 59)
@@ -416,5 +416,5 @@
 							if(DummyTypeInfo.type==VarType){
 								if(DummyTypeInfo.type==DEF_OBJECT){
-									if(DummyTypeInfo.u.lpIndex!=lpVarIndex){
+									if( !DummyTypeInfo.u.pobj_Class->IsEqualsOrSubClass( (CClass *)lpVarIndex ) ){
 										SetError(11,Parms[i2],cp);
 									}
