Commit Graph

3 Commits

Author SHA1 Message Date
Joe Groff
aa14d43739 Regression test from SR-1158. 2016-04-05 13:28:12 -07:00
Doug Gregor
f474fafa42 Don't allow a designated initializer to be written in an extension.
Collecting all of the designated initializers into the class
definition itself gives us the complete story in one location, which
improves consistency.

Swift SVN r15088
2014-03-14 22:52:06 +00:00
Doug Gregor
bc89a04d12 Disallow non-delegating initializers outside of the class's defining module.
An initializer outside of the class's defining module won't
necessarily have access to all of the stored properties of the class
to initialize them (and wouldn't be resilient against changes even if
it did), so it must delegate.

Swift SVN r12302
2014-01-15 00:11:38 +00:00