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
Copy file name to clipboardExpand all lines: Tests/SwiftParserTest/translated/AvailabilityQueryTests.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ final class AvailabilityQueryTests: XCTestCase {
65
65
}
66
66
""",
67
67
diagnostics:[
68
-
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#unavailable'?", fixIts:["replace '!#available' by '#unavailable'"])
68
+
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#unavailable'?", fixIts:["replace '!#available' with '#unavailable'"])
69
69
],
70
70
fixedSource:"""
71
71
if #unavailable(OSX 10.52, *) {
@@ -81,7 +81,7 @@ final class AvailabilityQueryTests: XCTestCase {
81
81
}
82
82
""",
83
83
diagnostics:[
84
-
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#unavailable'?", fixIts:["replace '!#available' by '#unavailable'"])
84
+
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#unavailable'?", fixIts:["replace '!#available' with '#unavailable'"])
85
85
]
86
86
)
87
87
}
@@ -93,7 +93,7 @@ final class AvailabilityQueryTests: XCTestCase {
93
93
}
94
94
""",
95
95
diagnostics:[
96
-
DiagnosticSpec(message:"expected ',' joining parts of a multi-clause condition", fixIts:["replace '&&' by ','"])
96
+
DiagnosticSpec(message:"expected ',' joining parts of a multi-clause condition", fixIts:["replace '&&' with ','"])
97
97
],
98
98
fixedSource:"""
99
99
if #available(OSX 10.51, *) , #available(OSX 10.52, *) {
@@ -389,7 +389,7 @@ final class AvailabilityQueryTests: XCTestCase {
389
389
}
390
390
""",
391
391
diagnostics:[
392
-
DiagnosticSpec(message:"expected ',' joining platforms in availability condition", fixIts:["replace '||' by ','"])
392
+
DiagnosticSpec(message:"expected ',' joining platforms in availability condition", fixIts:["replace '||' with ','"])
Copy file name to clipboardExpand all lines: Tests/SwiftParserTest/translated/AvailabilityQueryUnavailabilityTests.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ final class AvailabilityQueryUnavailabilityTests: XCTestCase {
50
50
}
51
51
""",
52
52
diagnostics:[
53
-
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#available'?", fixIts:["replace '!#unavailable' by '#available'"])
53
+
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#available'?", fixIts:["replace '!#unavailable' with '#available'"])
54
54
],
55
55
fixedSource:"""
56
56
if #available(OSX 10.52) {
@@ -66,7 +66,7 @@ final class AvailabilityQueryUnavailabilityTests: XCTestCase {
66
66
}
67
67
""",
68
68
diagnostics:[
69
-
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#available'?", fixIts:["replace '!#unavailable' by '#available'"])
69
+
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#available'?", fixIts:["replace '!#unavailable' with '#available'"])
70
70
]
71
71
)
72
72
}
@@ -78,7 +78,7 @@ final class AvailabilityQueryUnavailabilityTests: XCTestCase {
78
78
}
79
79
""",
80
80
diagnostics:[
81
-
DiagnosticSpec(message:"expected ',' joining parts of a multi-clause condition", fixIts:["replace '&&' by ','"])
81
+
DiagnosticSpec(message:"expected ',' joining parts of a multi-clause condition", fixIts:["replace '&&' with ','"])
82
82
]
83
83
)
84
84
}
@@ -471,7 +471,7 @@ final class AvailabilityQueryUnavailabilityTests: XCTestCase {
471
471
}
472
472
""",
473
473
diagnostics:[
474
-
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#unavailable'?", fixIts:["replace '!#available' by '#unavailable'"])
474
+
DiagnosticSpec(message:"availability condition cannot be used in an expression; did you mean '#unavailable'?", fixIts:["replace '!#available' with '#unavailable'"])
0 commit comments