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 24fc5ea commit e0fd4b6Copy full SHA for e0fd4b6
Tests/SwiftParserTest/translated/RecoveryTests.swift
@@ -2206,4 +2206,20 @@ final class RecoveryTests: XCTestCase {
2206
)
2207
}
2208
2209
+ func testRecovery182() {
2210
+ AssertParse(
2211
+ "func foo() 1️⃣bogus {}",
2212
+ diagnostics: [
2213
+ DiagnosticSpec(message: "unexpected code 'bogus' in function")
2214
+ ]
2215
+ )
2216
+
2217
2218
+ "func foo() 1️⃣bogus -> Int {}",
2219
2220
+ DiagnosticSpec(message: "unexpected code 'bogus' in function signature")
2221
2222
2223
+ }
2224
2225
0 commit comments