trying to work around compiler error
This commit is contained in:
@@ -277,7 +277,7 @@ fun File.isDescendant(file: File): Boolean {
|
||||
*/
|
||||
fun File.loadText(): String {
|
||||
val buffer = StringWriter()
|
||||
FileReader(this).use {
|
||||
FileReader(this).use<FileReader,Unit> {
|
||||
it.copyTo(buffer)
|
||||
}
|
||||
return buffer.toString() ?: ""
|
||||
|
||||
Reference in New Issue
Block a user