INSTANCE_MEMBER_ACCESS_FROM_STATIC constant

CompileTimeErrorCode const INSTANCE_MEMBER_ACCESS_FROM_STATIC

No parameters.

Implementation

static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_STATIC =
    CompileTimeErrorCode('INSTANCE_MEMBER_ACCESS_FROM_STATIC',
        "Instance members can't be accessed from a static method.",
        correction: "Try removing the reference to the instance member, or "
            "removing the keyword 'static' from the method.",
        hasPublishedDocs: true)