On Apr 7, 2008, at 2:39 PM, Matthias Kempka wrote:
While developing the inferrence support for Qooxdoo, I came across problems with the keyword "this". During the call of InferenceSupport.visit(IThisReference) I know exactly the type that the thisReference should have, but I can't assign it. Instead the thisReference has some anonymous type that does contain some of the type informations of the qooxdoo class but not all of it. Specifically qooxdoo features like properties and hierarchy information is lost.

Interestingly: As long as I'm in the constructor, everything works fine. The only difference in adding a constructor to a type vs adding a method to a type is a different value of the "isConstructor" parameter when calling

InferredType.addMethod(...).

Best Regards,
Matthias
--
Dipl.-Inform. Matthias Kempka
Innoopract Informationssysteme GmbH
[EMAIL PROTECTED]
Tel:  0721 - 66 47 33 - 0
Fax: 0721 - 66 47 33 29
========================= Legal Disclaimer =====================
According to Section 80 of the German Corporation Act
Innoopract Informationssysteme GmbH must indicate the following information:
Address: Stephanienstrasse 20, 76133 Karlsruhe Germany
General Manager: Jochen Krause, Eric von der Heyden
Registered Office: Karlsruhe, Commercial Register Karlsruhe HRB 7883
============================================================





_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to