aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/ExtensionMethods.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 17:26:10 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 17:26:10 +0200
commitd7c44086cc34eee7991753fc2ea284bdefed9670 (patch)
treef1b3461a042df1b7c65628ae57d7c1a613718cb8 /src/dotty/tools/dotc/transform/ExtensionMethods.scala
parent9f80c0d2e87819f183cf54028824bd338d780dcd (diff)
downloaddotty-d7c44086cc34eee7991753fc2ea284bdefed9670.tar.gz
dotty-d7c44086cc34eee7991753fc2ea284bdefed9670.tar.bz2
dotty-d7c44086cc34eee7991753fc2ea284bdefed9670.zip
Add spaces around + in dotty source.
Diffstat (limited to 'src/dotty/tools/dotc/transform/ExtensionMethods.scala')
-rw-r--r--src/dotty/tools/dotc/transform/ExtensionMethods.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/transform/ExtensionMethods.scala b/src/dotty/tools/dotc/transform/ExtensionMethods.scala
index a006f04a7..26f26fc2f 100644
--- a/src/dotty/tools/dotc/transform/ExtensionMethods.scala
+++ b/src/dotty/tools/dotc/transform/ExtensionMethods.scala
@@ -88,12 +88,12 @@ class ExtensionMethods extends MiniPhaseTransform with DenotTransformer with Ful
case decl: MultiDenotation =>
val alts = decl.alternatives
val index = alts indexOf imeth.denot
- assert(index >= 0, alts+" does not contain "+imeth)
- def altName(index: Int) = (imeth.name+"$extension"+index).toTermName
+ assert(index >= 0, alts + " does not contain " + imeth)
+ def altName(index: Int) = (imeth.name + "$extension" + index).toTermName
altName(index) #:: ((0 until alts.length).toStream filter (index != _) map altName)
case decl =>
- assert(decl.exists, imeth.name+" not found in "+imeth.owner+"'s decls: "+imeth.owner.info.decls)
- Stream((imeth.name+"$extension").toTermName)
+ assert(decl.exists, imeth.name + " not found in " + imeth.owner + "'s decls: " + imeth.owner.info.decls)
+ Stream((imeth.name + "$extension").toTermName)
}
}