Skip to content

Sema: Fix validateDeclForNameLookup() to use the right flags when resolving type alias underlying type [4.2] #17062

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

Conversation

slavapestov
Copy link
Contributor

Otherwise, we would in some cases reject this idiom, which looks odd
at first glance but we do support and users rely on:

struct Generic<T> {}

protocol P {
  typealias X = Generic
  // Equivalent to 'typealias X<T> = Generic<T>'
}

…olving type alias underlying type

Otherwise, we would in some cases reject this idiom, which looks odd
at first glance but we do support and users rely on:

struct Generic<T> {}

protocol P {
  typealias X = Generic
  // Equivalent to 'typealias X<T> = Generic<T>'
}
@slavapestov slavapestov changed the title Sema: Fix validateDeclForNameLookup() to use the right flags when resolving type alias underlying type Sema: Fix validateDeclForNameLookup() to use the right flags when resolving type alias underlying type [4.2] Jun 8, 2018
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit 1a8b66e into swiftlang:swift-4.2-branch Jun 8, 2018
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