mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There were two problems here: - isUnsupportedMemberTypeReference() checked if the immediate parent type was an unbound generic type, but did not check for the parent of the parent, etc. - The caller of isUnsupportedMemberTypeReference() had to re-check the various invalid conditions to determine what diagnostic to emit, and if none of those conditions matched it would just return an ErrorType without emitting a diagnostic. Fix both of these by having isUnsupportedMemberTypeReference() return an enum indicating what went wrong, and handle more cases. Fixes <rdar://problem/67292528>.
3.7 KiB
3.7 KiB