@@ -92,21 +92,21 @@ class TsTestResolver {
9292 when (lValue) {
9393 is UFieldLValue <* , * > -> {
9494 val resolvedRef = state.models.first().eval(lValue.ref)
95- resolvedLValuesToFakeObjects + = UFieldLValue (lValue.sort, resolvedRef, lValue.field) to fakeObject
95+ val fieldLValue = UFieldLValue (lValue.sort, resolvedRef, lValue.field)
96+ resolvedLValuesToFakeObjects + = fieldLValue to fakeObject
9697 }
9798
9899 is UArrayIndexLValue <* , * , * > -> {
99100 val model = state.models.first()
100101 val resolvedRef = model.eval(lValue.ref)
101102 val resolvedIndex = model.eval(lValue.index)
102-
103- val uArrayIndexLValue = UArrayIndexLValue (
103+ val arrayIndexLValue = UArrayIndexLValue (
104104 lValue.sort,
105105 resolvedRef,
106106 resolvedIndex,
107107 lValue.arrayType,
108108 )
109- resolvedLValuesToFakeObjects + = uArrayIndexLValue to fakeObject
109+ resolvedLValuesToFakeObjects + = arrayIndexLValue to fakeObject
110110 }
111111
112112 else -> error(" Unexpected lValue type: ${lValue::class .java.name} " )
@@ -235,8 +235,8 @@ open class TsTestStateResolver(
235235 val arrayLength = mkArrayLengthLValue(heapRef, type)
236236 val length = resolveLValue(arrayLength) as TsTestValue .TsNumber
237237
238- val values = (0 until length.number.toInt()).map {
239- val index = mkSizeExpr(it )
238+ val values = (0 until length.number.toInt()).map { i ->
239+ val index = mkSizeExpr(i )
240240 val sort = typeToSort(type.elementType)
241241
242242 if (sort is TsUnresolvedSort ) {
0 commit comments