CONST_WITH_NON_TYPE constant

CompileTimeErrorCode const CONST_WITH_NON_TYPE

16.12.2 Const: It is a compile-time error if T is not a class accessible in the current scope, optionally followed by type arguments.

16.12.2 Const: If e is of the form const T.id(a1, …, an, xn+1: an+1, … xn+k: an+k) it is a compile-time error if T is not a class accessible in the current scope, optionally followed by type arguments.

Parameters: 0: the name of the non-type element

Implementation

static const CompileTimeErrorCode CONST_WITH_NON_TYPE = CompileTimeErrorCode(
    'CONST_WITH_NON_TYPE', "The name '{0}' isn't a class.",
    correction: "Try correcting the name to match an existing class.",
    isUnresolvedIdentifier: true)