Compilation error: expected expression after 'unsafe' #81323
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
6.1 is able to compile the code below, but it does not compile in
swift-6.2-DEVELOPMENT-SNAPSHOT-2025-04-24-a
nor inswift-DEVELOPMENT-SNAPSHOT-2025-04-30-a
Worked around this by escaping `unsafe`.
Reproduction
Expected behavior
To compile
Environment
swiftc -v
Apple Swift version 6.2-dev (LLVM 81ab6d9f7e4810f, Swift 9cc1947)
Target: arm64-apple-macosx15.0
swiftc --version
Swift version 6.2-dev (LLVM 978186dad468cc4, Swift 2d7b7a7)
Target: x86_64-unknown-linux-gnu
Build config: +assertions
Additional information
No response
The text was updated successfully, but these errors were encountered: