Rename ErrorType to ErrorProtocol

This commit is contained in:
Dmitri Gribenko
2015-11-03 18:58:39 -08:00
committed by Max Moiseev
parent 99d3f96c6d
commit feacbc4433
123 changed files with 1121 additions and 1118 deletions

View File

@@ -111,13 +111,13 @@ func testUnreachableCase5(a : Tree) {
}
func testUnreachableAfterThrow(e : ErrorType) throws {
func testUnreachableAfterThrow(e: ErrorProtocol) throws {
throw e
return // expected-warning {{code after 'throw' will never be executed}}
}
class TestThrowInInit {
required init(e : ErrorType) throws {
required init(e: ErrorProtocol) throws {
throw e // no unreachable code diagnostic for the implicit return.
}
}