Commit Graph

4 Commits

Author SHA1 Message Date
Doug Gregor
5775732c21 [Serialization] Filter out XREFs into constrained extensions that should not find declarations there.
The presence of a generic signature in a XREF means that we should only find the result in a (further-constrained) extension with that generic signature. The absence of a generic signature in a XREF means that we should not find the result in a constrained extension. We implemented the former but not the latter, which would lead to deserialization failures if one had both constrained and unconstrained extensions with the same property in them. Methods/initializers weren’t a problem because the generic signature is (redundantly) encoded in their interface type.
2016-08-25 15:52:58 -07:00
Dmitri Hrybenko
51e236c609 stdlib: rename Array's generic parameter from T to Element
Same for ArraySlice and ContiguousArray.

Part of rdar://21429126

Swift SVN r29618
2015-06-24 20:41:49 +00:00
Doug Gregor
985896905e Ban generic parameters on extensions.
We no longer allow extensions to provide generic parameters, and the
ability to parse the syntax

  extension Array<String> { ... }

is causing confusion. Fixes rdar://problem/20873336.

Swift SVN r28468
2015-05-12 16:26:04 +00:00
Doug Gregor
55589c0947 Remove the prohibition on public extensions of generic types.
Now that we've separated out archetypes, (de-)serialization of such
extensions is working. Fixes rdar://problem/16974298.

Swift SVN r26484
2015-03-24 06:48:27 +00:00