Skip to content

Commit 7da6fdf

Browse files
committed
(WIP) Add a TODO in OperatorDeclTests.swift
1 parent 03864b6 commit 7da6fdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/SwiftParserTest/translated/OperatorDeclTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ final class OperatorDeclTests: XCTestCase {
167167
prefix operator %%+
168168
""",
169169
diagnostics: [
170-
DiagnosticSpec(message: "unexpected code before operator declaration")
170+
DiagnosticSpec(message: "operator must be declared as 'prefix', 'postfix', or 'infix'"),
171+
// TODO: Should be "unexpected code before operator declaration"
172+
DiagnosticSpec(message: "unexpected code in operator declaration")
171173
]
172174
)
173175
}

0 commit comments

Comments
 (0)