We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5340511 commit 5cb2987Copy full SHA for 5cb2987
Tests/SwiftParserTest/translated/OperatorDeclTests.swift
@@ -479,6 +479,29 @@ final class OperatorDeclTests: XCTestCase {
479
]
480
)
481
}
482
+
483
+ func testOperatorDecl124() {
484
+ assertParse(
485
+ """
486
+ 1️⃣@objc
487
+ postfix operator ++: PrecedenceGroup
488
+ """,
489
+ diagnostics: [
490
+ DiagnosticSpec(message: "unexpected code '@objc' before operator declaration")
491
+ ]
492
+ )
493
+ }
494
495
+ func testOperatorDecl125() {
496
497
498
+ 1️⃣mutating postfix operator --: UndefinedPrecedenceGroup
499
500
501
+ DiagnosticSpec(message: "unexpected code 'mutating' before operator declaration")
502
503
504
505
506
func testIdentifierAsOperatorName() {
507
assertParse(
0 commit comments