Below code gives me error of Multiple markers at this line - recursive value factWithTailRec needs type - Implicit conversions found: i => int2bigIn
@tailrec
val factWithTailRec = (i:Int, acc:BigInt) => if(i == 0) 1 else factWithTailRec(i-1, i * acc)
Could please suggest how can I prevent it.
Requirement is to assign val to a recursive function