Commit Graph

6 Commits

Author SHA1 Message Date
David Farler
b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00
Mark Lacey
93f9f8b696 Warn on string interpolation of optional lvalues.
We were only warning when the desugared type was an optional, without
first stripping off the lvalue-ness.

Resolves rdar://problem/27435494.
2016-11-01 14:43:01 -07:00
Mark Lacey
623a163ffe Merge pull request #5259 from rudkx/fix-28722908
Fix source location on collection cast optional-to-Any warning.
2016-10-12 13:33:23 -07:00
Mark Lacey
30544422af Fix source location on collection cast optional-to-Any warning.
The warnings here are not ideal, nor are the fixits, but having a
correct source location at least helps users determine where the
conversions are happening.

I've filed https://bugs.swift.org/browse/SR-2928 to improve the warnings
and fixits.

This resolves https://bugs.swift.org/browse/SR-2921 and the warning
location portion of rdar://problem/28722908.
2016-10-12 11:09:48 -07:00
Robert Widmann
f7984f86a6 Improve diagnostics for optionals in string interpolation segments 2016-10-11 12:27:09 -04:00
Robert Widmann
024349788e General bike shedding 2016-10-04 10:09:56 -04:00