Skip to content

Commit 17277d8

Browse files
committed
Fix calling wrong unary plus
1 parent 1035de3 commit 17277d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/constructor/tree/CgVariableConstructor.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ internal class CgVariableConstructor(val context: CgContext) :
218218
}
219219
is UtExecutableCallModel -> {
220220
val call = createCgExecutableCallFromUtExecutableCall(statementModel)
221-
+replaceCgExecutableCallWithFieldAccessIfNeeded(call)
221+
val callOrAccess = replaceCgExecutableCallWithFieldAccessIfNeeded(call)
222+
if (callOrAccess is CgExecutableCall)
223+
+callOrAccess
224+
else
225+
+callOrAccess
222226
}
223227
}
224228
}

0 commit comments

Comments
 (0)