mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] all sorts of require renamed back to precondition
This commit is contained in:
@@ -42,7 +42,7 @@ testArgumentShuffle(third: 1, 2)
|
||||
|
||||
func rejectsAssertStringLiteral() {
|
||||
assert("foo") // expected-error {{cannot convert value of type 'String' to expected argument type 'Bool'}}
|
||||
require("foo") // expected-error {{cannot convert value of type 'String' to expected argument type 'Bool'}}
|
||||
precondition("foo") // expected-error {{cannot convert value of type 'String' to expected argument type 'Bool'}}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user