Skip to content

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

Open
@Atry

Description

@Atry
  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) {
                          ^

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions