mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
init(count: Int, repeatedValue: Element) => init(repeating:count:)
Affected types: _ArrayType, Array, ArraySlice, ContiguousArray, Repeat, String (initializers from Character and UnicodeScalar)
This commit is contained in:
committed by
Max Moiseev
parent
d72b5ab575
commit
df17ddbc9b
@@ -94,8 +94,8 @@ func nsEncode<CodeUnit>(
|
||||
class CodecTest<Codec : TestableUnicodeCodec> {
|
||||
var used = 0
|
||||
typealias CodeUnit = Codec.CodeUnit
|
||||
var nsEncodeBuffer: [CodeUnit] = Array(count: 4, repeatedValue: 0)
|
||||
var encodeBuffer: [CodeUnit] = Array(count: 4, repeatedValue: 0)
|
||||
var nsEncodeBuffer: [CodeUnit] = Array(repeating: 0, count: 4)
|
||||
var encodeBuffer: [CodeUnit] = Array(repeating: 0, count: 4)
|
||||
|
||||
func testOne(scalar: UnicodeScalar) {
|
||||
/* Progress reporter
|
||||
|
||||
Reference in New Issue
Block a user