AMBIGUOUS_EXPORT constant

CompileTimeErrorCode const AMBIGUOUS_EXPORT

14.2 Exports: It is a compile-time error if a name N is re-exported by a library L and N is introduced into the export namespace of L by more than one export, unless each all exports refer to same declaration for the name N.

Parameters: 0: the name of the ambiguous element 1: the name of the first library in which the type is found 2: the name of the second library in which the type is found

Implementation

static const CompileTimeErrorCode AMBIGUOUS_EXPORT = CompileTimeErrorCode(
    'AMBIGUOUS_EXPORT',
    "The name '{0}' is defined in the libraries '{1}' and '{2}'.",
    correction: "Try removing the export of one of the libraries, or "
        "explicitly hiding the name in one of the export directives.")