Skip to content

swift repl suppresses warnings #71542

Open
@MahdiBM

Description

@MahdiBM

Description

~ swift repl
Welcome to Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5).
Type :help for assistance.
  1> #warning("test")
  2> let a = "sdad""
error: error while processing module import: error: repl.swift:5:15: error: unterminated string literal
let a = "sdad""
              ^

#warning at line #1 is suppressed but the error at line #2 is not.

Reproduction

[Provided in the previous section]

Expected behavior

I expect warnings to be emitted as well.

Environment

Swift 5.9.2, current 5.10 nightly, current main toolchain, none work as expected as of writing this issue.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions