Skip to content

Commit 7e33160

Browse files
committed
Modify a unit test code to make it consistent with a code example in docs
- The code example in docs was updated, but its origin, the unit test code, didn't
1 parent cdd3d1e commit 7e33160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/init/neg/AbstractFile.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ abstract class AbstractFile {
44
}
55

66
class RemoteFile(url: String) extends AbstractFile {
7-
val localFile: String = url.hashCode + ".tmp" // error
7+
val localFile: String = s"${url.##}.tmp" // error: usage of `localFile` before it's initialized
88
def name: String = localFile
99
}

0 commit comments

Comments
 (0)