mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SE-0112] Rename ErrorProtocol to Error.
This is bullet (5) of the proposed solution in SE-0112, and the last major piece to be implemented.
This commit is contained in:
@@ -356,7 +356,7 @@ public func testFailingCast(_ s:String) -> Int {
|
||||
return s as! Int // expected-warning {{cast from 'String' to unrelated type 'Int' always fails}}
|
||||
}
|
||||
|
||||
enum MyError : ErrorProtocol { case A }
|
||||
enum MyError : Error { case A }
|
||||
|
||||
@noreturn func raise() throws { throw MyError.A }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user