Skip to content

Bad diagnostic for let foo: [Int] [] #1610

@ahoppen

Description

@ahoppen

Issue Kind

Bad Diagnostic Produced

Source Code

let foo: [Int] []

Description

This currently produces the following. We should be suggesting to add a = if a variable declaration is followed by an expression on the same line without a = in between.

1 │ let foo: [Int] []
  │               ╰─ error: consecutive statements on a line must be separated by ';'

rdar://108623515

Metadata

Metadata

Assignees

Labels

SwiftParserBugs in the (new) Parser written in SwiftbugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions