blob: c85eca164aa3eb15062af1779b79f4fc74994d19 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
object Test {
val closeable1: { def close(): Unit } = new scala.io.Source { val iter: Iterator[Char] = "".iterator }
val closeable2: { def close(): Unit } = new java.io.Closeable { def close() = {} }
}
|