Skip to content

Commit 962016a

Browse files
committed
Add Identifiable conformance to _IdentifiableNever
1 parent 0f8d0a1 commit 962016a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Sources/Grape/Contents/_IdentifiableNever.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@ public enum _IdentifiableNever<ID: Hashable> { }
33
extension _IdentifiableNever: GraphContent {
44
public typealias NodeID = ID
55

6+
@inlinable
67
public var body: Self {
78
fatalError()
89
}
910

11+
@inlinable
1012
public func _attachToGraphRenderingContext(_ context: inout _GraphRenderingContext<NodeID>) {
1113
fatalError()
1214
}
15+
}
16+
17+
18+
extension _IdentifiableNever: Identifiable {
19+
@inlinable
20+
public var id: ID {
21+
fatalError()
22+
}
1323
}

0 commit comments

Comments
 (0)