Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Tests/SwiftParserTest/translated/RecoveryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,24 @@ final class RecoveryTests: ParserTestCase {
assertParse(
"""
repeat {
} while { true }()
} while1️⃣{ true }2️⃣()
""",
diagnostics: [
// TODO: Old parser expected error on line 2: missing condition in 'while' statement
// TODO: Old parser expected error on line 2: consecutive statements on a line must be separated by ';', Fix-It replacements: 10 - 10 = ';'
// TODO: Old parser expected warning on line 2: result of call to closure returning 'Bool' is unused
DiagnosticSpec(
locationMarker: "1️⃣",
message: "missing condition in 'while' statement"
),
DiagnosticSpec(
locationMarker: "2️⃣",
message: "consecutive statements on a line must be separated by ';'",
fixIts: ["seperate statements with ';"]
),
DiagnosticSpec(
message: "result of call to closure returning 'Bool' is unused"
),
]
)
}
Expand Down