sourceLocation error in Swift 6 (but not Swift 5 or with slight modification) #74561
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The Swift 6 toolchain reports
parameterless closing #sourceLocation() directive without prior opening #sourceLocation(file:,line:) directive
unexpectedly.Reproduction
Compile with
swiftc -c -emit-module-path bug_report -swift-version 5 -parse-as-library file.swift
Expected behavior
The sample code produces a module without errors.
Note that
completes without errors.
Environment
Tested with
Reports error:
Reports error:
No error:
Additional information
No response
The text was updated successfully, but these errors were encountered: