Fix warnings in stdlib samples and test modules
This commit is contained in:
@@ -33,7 +33,7 @@ class UseAutoCloseableResourceTest {
|
||||
|
||||
@Test fun closeFails() {
|
||||
val e = assertFails {
|
||||
Resource(faultyClose = true).use { "" }
|
||||
Resource(faultyClose = true).use { it.isClosed }
|
||||
}
|
||||
assertTrue(e is IOException)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user