mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A constraint like `Parameter == SomethingConcrete` means references to `Parameter` in that context behave like `SomethingConcrete`, including for name resolution. Handling the parameter as just a parameter type means that it won't find any non-protocol nested types (i.e. things other than associated types and protocol typealiases are invisible). Fixes rdar://problem/42136457 and SR-8240.
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors Repository: https://github.com/practicalswift/swift-compiler-crashes.git Web URL: https://github.com/practicalswift/swift-compiler-crashes