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
Oops, sorry, I just noticed they weren't 0, but not that they should all be 27. I can understand why the current behavior is the way it is, but it's also clearly not what's desired. (Although things could get complicated if your default argument value itself uses something that has default arguments…)
Attachment: Download
Environment
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
macOS X 10.13.3 (17D47)
Additional Detail from JIRA
md5: cfb72e303e35076200e38bc5b71119cc
duplicates:
is duplicated by:
Issue Description:
See attached `defaultArgs` file; Save it to your computer and execute it with `./defaultArgs`
Here are its contents:
Since the three `foo` functions are all executed on the same line, I would expect that all of them would log the same `#file` and `#line` values.
However, that is not the case. Only the `fooWithIndirectContext()` function does what is expected:
The other two fail to capture the `#file` and `#line` entirely.
The text was updated successfully, but these errors were encountered: