mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: Skeleton implementation of proposed KeyPath API.
Handles projection of stored struct and class properties. Most other functionality TODO.
This commit is contained in:
@@ -25,6 +25,7 @@ struct CustomIndex : Comparable {
|
||||
% for index in ['Int', 'CustomIndex']:
|
||||
% indexLabel = 'Custom' if index == 'CustomIndex' else ''
|
||||
|
||||
/// A rump implementation of Collection.
|
||||
struct ${indexLabel}${mutable}${rangeReplaceable}${capability}Butt
|
||||
: ${mutable}Collection
|
||||
% if rangeReplaceable:
|
||||
|
||||
Reference in New Issue
Block a user