Commit Graph

55 Commits

Author SHA1 Message Date
Chris Lattner
74250fab32 Fix <rdar://problem/16570157> Don't warn about AnyObject inference in for-each loops. It is
obvious that NSArray will return an AnyObject, don't require a ": AnyObject" type annotation.



Swift SVN r19125
2014-06-24 05:18:32 +00:00
Dmitri Hrybenko
c1e2e86a01 Fix coding style in a fixit. We used to suggest "var x : AnyObject",
now "var x: AnyObject"

rdar://16953714

Swift SVN r19088
2014-06-23 13:12:51 +00:00
Chris Lattner
60fc0e6cd2 Implement <rdar://problem/16951729> nil should be a literal type
This is all goodness, and eliminates a major source of implicit conversions.
One thing this regresses on though, is that we now reject "x == nil" where
x is an option type and the element of the optional is not Equtatable.  If
this is important, there are ways to enable this, but directly testing it as
a logic value is more straight-forward.

This does not include support for pattern matching against nil, that will be
a follow on patch.



Swift SVN r18918
2014-06-15 22:59:03 +00:00
Ted Kremenek
fad874708e Adjust test cases.
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Doug Gregor
faf1c45d14 Shuffle the files in the testsuite a bit to try to reflect language structure.
There's a lot more work to do here, but start to categorize tests
along the lines of what a specification might look like, with
directories (chapters) for basic concepts, declarations, expressions,
statements, etc.


Swift SVN r9958
2013-11-05 15:12:57 +00:00