first version of parameters variations

This commit is contained in:
2025-02-12 12:20:22 +06:00
parent f807f2beeb
commit a5008c3d15
3 changed files with 199 additions and 44 deletions

View File

@@ -9,8 +9,25 @@ data class Sample(
fun sample(
@GenerationVariant(
"example",
Sample::class,
"Sample",
"value"
)
example: String = "12"
) = println(example)
@GenerateVariations
suspend fun Sample.sample2(
@GenerationVariant(
"arg12",
"kotlin.Int",
"toString()"
)
arg1: String = "1",
@GenerationVariant(
"arg22",
"kotlin.String",
"toInt()"
)
arg2: Int = 2,
arg3: Boolean = false
) = println(arg1)