mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] NFC: Update all of the improved test-cases
This commit is contained in:
@@ -60,6 +60,7 @@ let _ = Z.a.stringValue // expected-error {{value of type 'Z' has no member 'str
|
||||
let _ = X(stringValue: "a") // expected-error {{'X' cannot be constructed because it has no accessible initializers}}
|
||||
let _ = Y(stringValue: "a") // expected-error {{incorrect argument label in call (have 'stringValue:', expected 'rawValue:')}}
|
||||
let _ = Z(stringValue: "a") // expected-error {{incorrect argument label in call (have 'stringValue:', expected 'rawValue:')}}
|
||||
// expected-error@-1 {{cannot convert value of type 'String' to expected argument type 'Int'}}
|
||||
|
||||
let _ = X.a.intValue // expected-error {{value of type 'X' has no member 'intValue'}}
|
||||
let _ = Y.a.intValue // expected-error {{value of type 'Y' has no member 'intValue'; did you mean 'rawValue'?}}
|
||||
@@ -67,6 +68,7 @@ let _ = Z.a.intValue // expected-error {{value of type 'Z' has no member 'intVal
|
||||
|
||||
let _ = X(intValue: 0) // expected-error {{'X' cannot be constructed because it has no accessible initializers}}
|
||||
let _ = Y(intValue: 0) // expected-error {{incorrect argument label in call (have 'intValue:', expected 'rawValue:')}}
|
||||
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'String'}}
|
||||
let _ = Z(intValue: 0) // expected-error {{incorrect argument label in call (have 'intValue:', expected 'rawValue:')}}
|
||||
|
||||
// Types which are valid for CodingKey derived conformance should get derivation
|
||||
|
||||
Reference in New Issue
Block a user