[swift-dev] Swift question

Jordan Rose jordan_rose at apple.com
Wed Jun 14 18:33:37 CDT 2017

[+swift-dev list] We use -verify mode to test warnings—you can see this a lot in tests with "expected-warning". The way to test for fix-its is to add "{{M-N=newtext}}" after the diagnostic text, where M and N are the start and end column numbers of the replacement (a half-open range). For an insertion, the column numbers will be the same; for a removal, the new text will be empty.

Thanks for picking this up!

> On Jun 13, 2017, at 07:37, Dmitry Venikov <quolyk at gmail.com> wrote:
> Hello, I have a question about https://bugs.swift.org/browse/SR-4949 <https://bugs.swift.org/browse/SR-4949> and would be happy if you could answer. How do I test warnings and fix-its (fixItRemove)? Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170614/b539632e/attachment.html>

More information about the swift-dev mailing list