Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Parse an extended type as part of a nominal type declaration's name. #2942

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

allevato
Copy link
Member

Parser changes for a feature that would allow users to write "implicitly nested" types at the top level, like

struct Outer.Inner {}

which would be equivalent to

extension Outer {
  struct Inner {}
}

These are parser changes necessary for automatic extension synthesis
that would allow users to write

```swift
struct Outer.Inner {}
```

instead of

```swift
extension Outer {
  struct Inner {}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant