CONFLICTING_CONSTRUCTOR_AND_STATIC_FIELD constant

CompileTimeErrorCode const CONFLICTING_CONSTRUCTOR_AND_STATIC_FIELD

10.11 Class Member Conflicts: Let C be a class. It is a compile-time error if C declares a constructor named C.n, and a static member with basename n.

Parameters: 0: the name of the constructor

Implementation

static const CompileTimeErrorCode CONFLICTING_CONSTRUCTOR_AND_STATIC_FIELD =
    CompileTimeErrorCode(
        'CONFLICTING_CONSTRUCTOR_AND_STATIC_FIELD',
        "'{0}' can't be used to name both a constructor and a static field "
            "in this class.",
        correction: "Try renaming either the constructor or the field.")