diff --git a/src/main/scala/leon/purescala/ExprOps.scala b/src/main/scala/leon/purescala/ExprOps.scala index 1d1b03ff9e5b3a680f4d952f8ecd7d9d9396686a..ab6a848df444a3d1d7a39550febfd8a9feac02b9 100644 --- a/src/main/scala/leon/purescala/ExprOps.scala +++ b/src/main/scala/leon/purescala/ExprOps.scala @@ -192,7 +192,7 @@ object ExprOps extends { val Deconstructor = Operator } with GenTreeOps[Expr] { /** Computes the depth of the expression's tree */ def depth(e: Expr): Int = { - fold[Int]{ (e, sub) => 1 + (0 +: sub).max }(e) + fold[Int]{ (_, sub) => 1 + (0 +: sub).max }(e) } /** Applies the function to the I/O constraint and simplifies the resulting constraint */