scala-arm icon indicating copy to clipboard operation
scala-arm copied to clipboard

value filter is not a member of resource.ManagedResource[(java.io.Closeable, java.io.Closeable)]

Open Atry opened this issue 9 years ago • 0 comments

  val xAndY = for {
    x <- managed(new Closeable { def close() { println("closing x...") } })
    y <- managed(new Closeable { def close() { println("closing y...") } })
  } yield (x, y) 
  for ((x, y) <- xAndY) {
    println("using x and y")
  } 
cmd7.scala:1: value filter is not a member of resource.ManagedResource[(java.io.Closeable, java.io.Closeable)]
val res7 = for ((x, y) <- xAndY) {
                          ^

Atry avatar Mar 30 '17 09:03 Atry