kotlin-stdlib-gen: UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS

(cherry picked from commit feab6f3)
This commit is contained in:
Mikhail Glukhikh
2016-07-25 15:35:03 +03:00
committed by Mikhail Glukhikh
parent a2b68f65be
commit 94029393cb
@@ -285,7 +285,7 @@ fun specialJVM(): List<GenericFunction> {
val result = arrayOfNulls<T>(size)
for (index in indices)
result[index] = this[index]
@Suppress("CAST_NEVER_SUCCEEDS")
@Suppress("UNCHECKED_CAST")
return result as Array<T>
"""
}