TailRec optimisation and export

47 Views Asked by At

What's wrong with the following code?

class A {
  val m = new scala.collection.concurrent.TrieMap[Int, Int]()
  export m.clear
}

The compilation error (Scala 3.4.0): "TailRec optimisation not applicable, method clear contains no recursive calls".

0

There are 0 best solutions below