[Diagnostics] SR-11419 Diagnose protocol stub note in editor mode only (#28101)

* [TypeChecker] Enclosing stubs protocol note within editor mode

* [test] Removing note from test where there is no -diagnostics-editor-mode flag

* Formatting modified code

* [tests] Fixing tests under validation-tests
This commit is contained in:
Luciano Almeida
2019-11-06 12:42:48 -03:00
committed by Robert Widmann
parent d9b03a56a9
commit 1184492d25
24 changed files with 60 additions and 63 deletions

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -swift-version 4
struct MyInt: FixedWidthInteger { // expected-error {{type 'MyInt' does not conform to protocol 'BinaryInteger'}} expected-note 3 {{do you want to add protocol stubs?}}
struct MyInt: FixedWidthInteger { // expected-error {{type 'MyInt' does not conform to protocol 'BinaryInteger'}}
typealias IntegerLiteralType = Int
static let isSigned = false
init(integerLiteral value: Int) { fatalError() }