Commit Graph

103 Commits

Author SHA1 Message Date
Joe Groff
2405002991 Sema: Remove the subtype constraint introduced for checked casts.
This prevented metatype casts and other kinds of cast that could be allowed from being accepted. Keep the subtype constraint if we're casting between generic class types with open type variables, because it can provide context to deduce type arguments in this case. This causes a regression in test/Constraints/members.swift that uses 'as' as a coercion, but we're planning to disambiguate cast/coercion syntax soon, which should fix that issue.

Swift SVN r23303
2014-11-13 17:08:04 +00:00
Jordan Rose
a805b4bfaa [test] Foundation doesn't import CoreGraphics on iOS.
Swift SVN r20944
2014-08-02 02:20:19 +00:00
Joe Pamer
e068b721d3 Capture a few specific diagnostic cases that don't seem to be covered anywhere else.
Swift SVN r20928
2014-08-01 23:32:20 +00:00