Skip to content

Commit 56f218b

Browse files
authored
Merge pull request swiftlang#462 from slavapestov/update-for-never-noreturn
Update for SE-0102 -- @NoReturn attribute replaced with Never type
2 parents da487bb + 8a5800d commit 56f218b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/NSObjCRuntime.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ public typealias Comparator = (AnyObject, AnyObject) -> ComparisonResult
191191

192192
public let NSNotFound: Int = Int.max
193193

194-
@noreturn internal func NSRequiresConcreteImplementation(_ fn: String = #function, file: StaticString = #file, line: UInt = #line) {
194+
internal func NSRequiresConcreteImplementation(_ fn: String = #function, file: StaticString = #file, line: UInt = #line) -> Never {
195195
fatalError("\(fn) must be overriden in subclass implementations", file: file, line: line)
196196
}
197197

198-
@noreturn internal func NSUnimplemented(_ fn: String = #function, file: StaticString = #file, line: UInt = #line) {
198+
internal func NSUnimplemented(_ fn: String = #function, file: StaticString = #file, line: UInt = #line) -> Never {
199199
fatalError("\(fn) is not yet implemented", file: file, line: line)
200200
}
201201

202-
@noreturn internal func NSInvalidArgument(_ message: String, method: String = #function, file: StaticString = #file, line: UInt = #line) {
202+
internal func NSInvalidArgument(_ message: String, method: String = #function, file: StaticString = #file, line: UInt = #line) -> Never {
203203
fatalError("\(method): \(message)", file: file, line: line)
204204
}
205205

0 commit comments

Comments
 (0)