Unnecessary reflection used for val properties that can be set via constructor #1190
Labels
comp-codegen
Issue is related to code generator
ctg-bug
Issue is a bug
lang-kotlin
Issue is related to Kotlin language support
Description
If constructor has a val property, codegen doesn't use this constructor but instead instantiates class via reflection although it can normally be done without it.
To Reproduce
Launch action on the following class:
Expected behavior
Correct tests are generated, reflection is not used at all.
Actual behavior
Generated tests contain reflection usage.
Visual proofs (screenshots, logs, images)
One of the generated tests:
The text was updated successfully, but these errors were encountered: