mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
committed by
Robert Widmann
parent
d9b03a56a9
commit
1184492d25
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user