Skip to content

Commit 70c93c6

Browse files
committed
Add another fixed test case provided by Rintaro (thanks!)
1 parent 48db876 commit 70c93c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/decl/var/usage.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ func testBuildConfigs() {
247247
#endif
248248
}
249249

250+
func postfixSuppression() -> Int {
251+
let x = 10 // used to have warning: ... 'x' was never used...
252+
return 5
253+
#if FLAG
254+
.modifier(x)
255+
#endif
256+
}
257+
250258
// same as above, but with a guard statement
251259
func testGuardWithPoundIf(x: Int?) {
252260
guard let x = x else { return }

0 commit comments

Comments
 (0)