stdlib: don't use assert() in stdlib implementation

Swift SVN r18653
This commit is contained in:
Dmitri Hrybenko
2014-05-28 20:43:56 +00:00
parent 5718e5fe3d
commit 473ad2e1eb
4 changed files with 10 additions and 6 deletions

View File

@@ -210,7 +210,7 @@ extension ArrayBuffer {
// Could be sped up, e.g. by using
// enumerateObjectsAtIndexes:options:usingBlock:
for i in subRange {
assert(ns.objectAtIndex(i) is T,
_precondition(ns.objectAtIndex(i) is T,
"NSArray element failed to match the Swift Array Element type")
}
}