Minor, fix generateBuiltins test
This commit is contained in:
@@ -458,6 +458,7 @@ class UnsignedArrayGenerator(val type: UnsignedType, out: PrintWriter) : BuiltIn
|
|||||||
override fun contains(element: $elementType): Boolean {
|
override fun contains(element: $elementType): Boolean {
|
||||||
// TODO: Eliminate this check after KT-30016 gets fixed.
|
// TODO: Eliminate this check after KT-30016 gets fixed.
|
||||||
// Currently JS BE does not generate special bridge method for this method.
|
// Currently JS BE does not generate special bridge method for this method.
|
||||||
|
@Suppress("USELESS_CAST")
|
||||||
if ((element as Any?) !is $elementType) return false
|
if ((element as Any?) !is $elementType) return false
|
||||||
|
|
||||||
return storage.contains(element.to$storageElementType())
|
return storage.contains(element.to$storageElementType())
|
||||||
|
|||||||
Reference in New Issue
Block a user