You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which (deliberately) doesn't work (https://bugs.swift.org/browse/SR-12934). The only solution seems to be (thanks brentdax (JIRA User)) creating trampoline functions for every function that needs #filePath.
This clearly isn't acceptable without introducing a new -swift-version preserving the behaviour in -swift-version 4, -swift-version 4.2, and -swift-version 5.
The only other option I see is to maybe make ((#file)) or something else that's valid in Swift 5.0 continue to mean #filePath.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: a2e3c979da7982d47ebb958c678eb8da
Issue Description:
In Swift <= 5.2, you got the full file path with
But in Swift 5.3+ I'm supposed to use
which is incompatible with Swift 5.2. One idea to shim it is
which (deliberately) doesn't work (https://bugs.swift.org/browse/SR-12934). The only solution seems to be (thanks brentdax (JIRA User)) creating trampoline functions for every function that needs
#filePath
.This clearly isn't acceptable without introducing a new
-swift-version
preserving the behaviour in-swift-version 4
,-swift-version 4.2
, and-swift-version 5
.The only other option I see is to maybe make
((#file))
or something else that's valid in Swift 5.0 continue to mean#filePath
.The text was updated successfully, but these errors were encountered: