Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler/src/dotty/tools/io/AbstractFile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ abstract class AbstractFile extends Iterable[AbstractFile] {
/** Returns contents of file (if applicable) in a byte array.
*/
@throws(classOf[IOException])
def toByteArray: Array[Byte] = {
def toByteArray: Array[Byte] = _toByteArray

private lazy val _toByteArray: Array[Byte] = {
val in = input
sizeOption match {
case Some(size) =>
Expand Down
Loading