Skip to content

Commit 7a43637

Browse files
committed
ToString/description was missing for new Array/Dictionary structs
1 parent d9188cf commit 7a43637

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Source/Array.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,10 @@ public struct Array<T>
711711
return true
712712
}
713713

714+
@ToString
715+
public override func description() -> String {
716+
return list.description
717+
}
714718
}
715719

716720
#if !COCOA

Source/Dictionary.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ public struct Dictionary<Key, Value> /*: INSFastEnumeration<T>*/
343343
return dictionary.allValues as! ISequence<Value>
344344
#endif
345345
}
346+
347+
@ToString
348+
public override func description() -> String {
349+
return dictionary.description
350+
}
346351
}
347352

348353
#if !COCOA

0 commit comments

Comments
 (0)