Skip to content

Commit bdc6818

Browse files
authored
Merge pull request #21265 from moiseev/scenekit-switch-default
Use @unknown default in a switch over SCNGeometryPrimitiveType
2 parents 5154886 + 7e211c6 commit bdc6818

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Darwin/SceneKit/SceneKit.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ extension SCNGeometryElement {
164164
primitiveCount = indexCount
165165
case .polygon:
166166
fatalError("Expected constant number of indices per primitive")
167+
@unknown default:
168+
fatalError("Unexpected primitive type")
167169
}
168170
self.init(
169171
data: Data(bytes: indices, count: indexCount * MemoryLayout<IndexType>.stride),

0 commit comments

Comments
 (0)