Skip to content

Commit 3881aca

Browse files
authored
Merge pull request #71322 from ahoppen/ahoppen/attribute-with-newline
[Parse] Add test case for newline between `@` and attribute name
2 parents 32d5873 + 4a7f298 commit 3881aca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Parse/attribute_spacing.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ let closure1 = { @MainActor (a, b) in // expected-warning {{extraneous whitespac
2626
let closure2 = { @MainActor
2727
(a: Int, b: Int) in
2828
}
29+
30+
// expected-warning@+1{{extraneous whitespace between '@' and attribute name; this is an error in Swift 6}}
31+
@
32+
MainActor
33+
func mainActorFunc() {}

0 commit comments

Comments
 (0)