Skip to content

Commit 3ffdc95

Browse files
committed
[Parse] Add test case for newline between @ and attribute name
1 parent c6e425a commit 3ffdc95

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)