mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
467 B
Swift
20 lines
467 B
Swift
// RUN: %target-swift-emit-silgen %s
|
|
|
|
// https://github.com/apple/swift/issues/56024
|
|
|
|
public var UNIMPLEMENTED: Never { fatalError("UNIMPLEMENTED") }
|
|
|
|
public func UNIMPLEMENTED(
|
|
function: String = #function,
|
|
file: StaticString = #file,
|
|
line: UInt = #line
|
|
) -> Never {
|
|
fatalError("UNIMPLEMENTED ← \(function)", file: file, line: line)
|
|
}
|
|
|
|
public struct Test {
|
|
public func foo() throws -> UnkeyedDecodingContainer {
|
|
UNIMPLEMENTED()
|
|
}
|
|
}
|