mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Until recently we didn't allow nested generic types at all. In Swift 3, generic typealiases were added, and we forgot to guard against them in witness matching, leading to a crash if a generic typealias witnesses an associated type requirement. Now that nested generic nominals are allowed too, add a check. The diagnostic is not very good, but I'll revisit this later.
2.7 KiB
2.7 KiB