[Issue 2202] Error getting type of non-static member of a class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 4 08:10:13 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2202
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #8 from Don <clugdbug at yahoo.com.au> 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: -------
More information about the Digitalmars-d-bugs
mailing list