Swift question

[+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!
Jordan

···

On Jun 13, 2017, at 07:37, Dmitry Venikov <quolyk@gmail.com> wrote:

Hello, I have a question about [SR-4949] No error for using 'as' patterns with CF types · Issue #47526 · apple/swift · GitHub and would be happy if you could answer. How do I test warnings and fix-its (fixItRemove)? Thank you.