Contents

warning(_:file:line:)

Emits a warning with the message you specify.

Declaration

static func warning(_ message: String, file: String? = #file, line: Int? = #line)

Parameters

  • message:

    The description of the warning.

  • file:

    The file responsible for the diagnostic, that defaults to #file.

  • line:

    The line responsible for the diagnostic, that defaults to #line.

See Also

Emitting Errors and Diagnostics