Changeset 645

Show
Ignore:
Timestamp:
08/28/10 17:29:15 (1 year ago)
Author:
walter
Message:

Issue 4291 - Pure functions cannot access mixed in variables

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/expression.c

    r640 r645  
    42874287                    sc->func->toChars(), v->toChars()); 
    42884288            } 
    4289             else if (sc->func->isPure() && sc->parent != v->parent && 
     4289            else if (sc->func->isPure() && 
     4290                sc->parent->pastMixin() != v->parent->pastMixin() && 
    42904291                !v->isImmutable() && 
    42914292                !(v->storage_class & STCmanifest))