Doug Gregor
d93eaed9f7
Switch BooleanLiteralConvertible over to an initializer requirement.
...
Conforming to BooleanLiteralConvertible now requires
init(booleanLiteral: Bool)
rather than
static func convertFromBooleanLiteral(value: Bool) -> Self
This posed a problem for NSNumber's conformance to
BooleanLiteralConvertible. A class needs a required initializer to
satisfy an initializer requirement, but one cannot add a required
initializer via an extension. To that end, we hack the Clang importer
to import NSNumber's initWithBool with the name
init(booleanLiteral:)
and add back the expected init(bool:) initializer in the
overlay. These tricks make NSNumber even harder to subclass, but we
don't really care: it's nearly impossible to do well anyway, and is
generally a Bad Idea.
Part of rdar://problem/18154091.
Swift SVN r21961
2014-09-15 23:59:30 +00:00
..
2014-09-11 20:20:19 +00:00
2014-07-08 02:17:46 +00:00
2014-08-23 01:31:07 +00:00
2014-07-22 23:04:45 +00:00
2014-08-03 15:20:37 +00:00
2014-09-12 00:35:09 +00:00
2014-08-14 17:31:54 +00:00
2014-08-18 10:48:52 +00:00
2014-08-18 14:07:56 +00:00
2014-09-12 01:29:51 +00:00
2014-09-15 23:59:30 +00:00
2014-07-31 18:22:56 +00:00
2014-08-23 18:21:36 +00:00
2014-09-10 11:58:45 +00:00
2014-07-08 02:17:46 +00:00
2014-09-02 14:26:51 +00:00
2014-09-11 17:42:32 +00:00
2014-07-24 13:17:36 +00:00
2014-07-28 19:20:39 +00:00
2014-08-03 18:42:53 +00:00
2014-07-29 23:25:28 +00:00
2014-09-15 23:59:30 +00:00
2014-08-05 14:55:09 +00:00
2014-09-15 13:49:56 +00:00
2014-09-02 17:26:03 +00:00
2014-08-03 21:47:31 +00:00
2014-09-15 14:08:56 +00:00
2014-07-12 17:29:57 +00:00
2014-07-12 17:29:57 +00:00
2014-07-28 19:20:39 +00:00
2014-08-29 15:38:22 +00:00
2014-08-25 13:56:38 +00:00
2014-08-29 15:38:22 +00:00
2014-08-14 00:25:44 +00:00
2014-09-02 17:26:03 +00:00
2014-08-19 08:31:30 +00:00
2014-08-03 21:34:28 +00:00
2014-07-15 16:52:04 +00:00
2014-08-03 18:42:53 +00:00
2014-08-04 10:58:59 +00:00
2014-07-22 19:30:42 +00:00
2014-07-12 17:29:57 +00:00
2014-09-04 22:58:37 +00:00
2014-07-28 19:20:39 +00:00
2014-07-12 17:29:57 +00:00
2014-09-10 08:07:45 +00:00
2014-09-15 15:50:43 +00:00
2014-08-13 16:33:35 +00:00
2014-09-02 17:26:03 +00:00
2014-07-22 22:29:03 +00:00
2014-08-25 13:21:54 +00:00
2014-08-14 17:27:43 +00:00
2014-08-03 15:20:37 +00:00
2014-07-20 17:26:24 +00:00
2014-07-31 14:57:41 +00:00
2014-09-08 08:33:37 +00:00
2014-07-12 17:29:57 +00:00
2014-07-08 02:17:46 +00:00
2014-07-12 17:29:57 +00:00
2014-09-11 14:52:58 +00:00
2014-07-22 16:56:23 +00:00
2014-07-28 19:20:39 +00:00
2014-09-11 10:59:50 +00:00
2014-08-14 16:04:39 +00:00
2014-08-05 09:31:10 +00:00
2014-08-04 19:07:33 +00:00
2014-09-09 03:50:40 +00:00
2014-08-22 21:53:12 +00:00
2014-08-28 10:03:02 +00:00
2014-09-11 17:42:32 +00:00
2014-08-29 15:38:22 +00:00
2014-08-04 15:37:58 +00:00
2014-08-22 00:53:27 +00:00
2014-08-22 21:53:12 +00:00
2014-07-23 16:28:57 +00:00
2014-08-03 20:01:34 +00:00
2014-08-22 21:53:12 +00:00
2014-08-14 16:04:39 +00:00
2014-09-12 01:29:51 +00:00
2014-09-11 08:52:55 +00:00
2014-07-28 01:03:09 +00:00
2014-08-22 21:53:12 +00:00
2014-08-22 21:53:12 +00:00
2014-07-28 19:20:39 +00:00