mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Switch the stdlib to use #file instead of __FILE__, and deprecate the __FILE__ identifiers.
This also updates the tests that would otherwise fail.
This commit is contained in:
@@ -48,8 +48,8 @@ func rejectsAssertStringLiteral() {
|
||||
|
||||
|
||||
// <rdar://problem/22243469> QoI: Poor error message with throws, default arguments, & overloads
|
||||
func process(line: UInt = __LINE__, _ fn: () -> Void) {}
|
||||
func process(line: UInt = __LINE__) -> Int { return 0 }
|
||||
func process(line: UInt = #line, _ fn: () -> Void) {}
|
||||
func process(line: UInt = #line) -> Int { return 0 }
|
||||
func dangerous() throws {}
|
||||
|
||||
func test() {
|
||||
|
||||
Reference in New Issue
Block a user