File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ object IArray {
4848 */
4949 def empty [T : ClassTag ]: IArray [T ] = new Array [T ](0 ).asInstanceOf
5050
51+ def emptyBooleanIArray = Array .emptyBooleanArray.asInstanceOf [IArray [Boolean ]]
52+ def emptyByteIArray = Array .emptyByteArray.asInstanceOf [IArray [Byte ]]
53+ def emptyCharIArray = Array .emptyCharArray.asInstanceOf [IArray [Char ]]
54+ def emptyDoubleIArray = Array .emptyDoubleArray.asInstanceOf [IArray [Double ]]
55+ def emptyFloatIArray = Array .emptyFloatArray.asInstanceOf [IArray [Float ]]
56+ def emptyIntIArray = Array .emptyIntArray.asInstanceOf [IArray [Int ]]
57+ def emptyLongIArray = Array .emptyLongArray.asInstanceOf [IArray [Long ]]
58+ def emptyShortIArray = Array .emptyShortArray.asInstanceOf [IArray [Short ]]
59+ def emptyObjectIArray = Array .emptyObjectArray.asInstanceOf [IArray [Object ]]
60+
5161 /** An immutable array with given elements.
5262 */
5363 def apply [T : ClassTag ](xs : T * ): IArray [T ] = Array (xs : _* ).asInstanceOf
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ object DynamicTuple {
185185 }
186186
187187 def dynamicToIArray (self : Tuple ): IArray [Object ] = (self : Any ) match {
188- case self : Unit => Array .emptyObjectArray.asInstanceOf [IArray [Object ]]
188+ case self : Unit => Array .emptyObjectArray.asInstanceOf [IArray [Object ]] // TODO use IArray.emptyObjectIArray
189189 case self : TupleXXL => self.elems
190190 case self : Product => productToArray(self).asInstanceOf [IArray [Object ]]
191191 }
You can’t perform that action at this time.
0 commit comments