Skip to content

Additional declaration allowed on same line after #endif #1823

Closed
@ahoppen

Description

@ahoppen

Issue Kind

Other

Source Code

struct Foo {
  #if false
  var x: Int
#endif; var x = 1
}

Description

The above example produces an error Extra tokens following conditional compilation directive in the old parser but is incorrectly accepted by the new parser.

Metadata

Metadata

Assignees

Labels

SwiftParserBugs in the (new) Parser written in SwiftbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions