kotlin-stdlib-gen: UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS
(cherry picked from commit feab6f3)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a2b68f65be
commit
94029393cb
@@ -285,7 +285,7 @@ fun specialJVM(): List<GenericFunction> {
|
|||||||
val result = arrayOfNulls<T>(size)
|
val result = arrayOfNulls<T>(size)
|
||||||
for (index in indices)
|
for (index in indices)
|
||||||
result[index] = this[index]
|
result[index] = this[index]
|
||||||
@Suppress("CAST_NEVER_SUCCEEDS")
|
@Suppress("UNCHECKED_CAST")
|
||||||
return result as Array<T>
|
return result as Array<T>
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user