I've been staring at this for a few hours - so I wanted to make sure it wasn't just me.

I keep getting an error on this - 

I have a CFC - 'Parent.cfc'

another CFC - 'Child.cfc' extends 'Parent.cfc'

If I write a function that has:

<cffunction name="doStuff" access="public">
   <cfargument name="obj" required="Yes" type="Parent">
   <!--- do stuff !--->
</cffunction>

and then do - 

<cfscript>
    objChild = createObject("component", "Child");
    doStuff(objChild);
</cfscript>

I get told that 'The argument OBJ passed to function doStuff() is not of type Parent. 
'.

But it IS - inhertence says so.

Am I missing something?

TIA.

Mark

------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]




---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to