swift-evolution/0285-ease-pound-file-transition.md at main · apple/swift-evolution · GitHub states the following:
Standard library assertion functions like
assert
,precondition
, andfatalError
will switch from#file
to#fileID
. When a filename is included in a compiler-generated trap, such as a force unwrap, it will also emit a literal equivalent to using#fileID
.
But in Swift 5.6, and on the main branch, these functions still have a default argument of #file
: swift/Assert.swift at main · apple/swift · GitHub
Is this an oversight or is it intentional - and instead this change will simply be realized with the change of behaviour of #file
in a Swift 6 compiler mode?