fun a() {
val i = 12
adaptive(TestAdapter()) {
T1(i)
}
}
This works OK:
val i1 = 12
fun a() {
adaptive(TestAdapter()) {
T1(i1)
}
}
The problem is the function scope which is something complicated I think as there may be other, non-adaptive players who change the value of the variable.
Maybe the best solution would be to generate a compilation error in this case.
This results in a compiler error:
This works OK:
The problem is the function scope which is something complicated I think as there may be other, non-adaptive players who change the value of the variable.
Maybe the best solution would be to generate a compilation error in this case.