http://d.puremagic.com/issues/show_bug.cgi?id=2202


Don <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




--- Comment #8 from Don <[email protected]>  2009-09-04 08:10:11 PDT ---

PATCH: mtype.c, in TypeClass::dotExp(), around line 6350 in D2.032. Don't
convert class.x into this.x if inside a typeof() and we don't have a 'this'.

--------
    /* It's:
     *    Class.d
     */
    if (d->isTupleDeclaration())
    {
        e = new TupleExp(e->loc, d->isTupleDeclaration());
        e = e->semantic(sc);
        return e;
    }
-    else if (d->needThis() && (hasThis(sc) || !d->isFuncDeclaration()))
+    else if (d->needThis() && (hasThis(sc) || (!sc->intypeof &&
!d->isFuncDeclaration())))
    {
        if (sc->func)
        {
        ClassDeclaration *thiscd;
        thiscd = sc->func->toParent()->isClassDeclaration();
-------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to