aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotty/tools
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2017-03-15 10:04:20 +0100
committerGitHub <noreply@github.com>2017-03-15 10:04:20 +0100
commit141fb4b8c63e5b9cbbb1b92f55412e676a38cbf0 (patch)
treecab94bb63bad887672534d4d3f078506a0a9ce59 /compiler/test/dotty/tools
parent934da77590dad2003fe850b48b2ae01b427508f0 (diff)
parentbe5720c18ca6768c7e72d4258677952848db2bb4 (diff)
downloaddotty-141fb4b8c63e5b9cbbb1b92f55412e676a38cbf0.tar.gz
dotty-141fb4b8c63e5b9cbbb1b92f55412e676a38cbf0.tar.bz2
dotty-141fb4b8c63e5b9cbbb1b92f55412e676a38cbf0.zip
Merge pull request #2043 from dotty-staging/tailrec-derivesFrom
Tailrec for derivesFrom/lookupRefined/classSymbol/classSymbols
Diffstat (limited to 'compiler/test/dotty/tools')
-rw-r--r--compiler/test/dotty/tools/dotc/CompilerTest.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/test/dotty/tools/dotc/CompilerTest.scala b/compiler/test/dotty/tools/dotc/CompilerTest.scala
index 5d16917cc..db12994f4 100644
--- a/compiler/test/dotty/tools/dotc/CompilerTest.scala
+++ b/compiler/test/dotty/tools/dotc/CompilerTest.scala
@@ -500,12 +500,12 @@ abstract class CompilerTest {
* that aren't in extensionsToCopy. */
private def recCopyFiles(sourceFile: Path, dest: Path): Unit = {
- def copyfile(file: SFile, bytewise: Boolean): Unit = {
+ @tailrec def copyfile(file: SFile, bytewise: Boolean): Unit = {
if (bytewise) {
val in = file.inputStream()
val out = SFile(dest).outputStream()
val buffer = new Array[Byte](1024)
- def loop(available: Int):Unit = {
+ @tailrec def loop(available: Int):Unit = {
if (available < 0) {()}
else {
out.write(buffer, 0, available)