We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0639d28 commit 334af17Copy full SHA for 334af17
library/src-3.x/scala/internal/quoted/Matcher.scala
@@ -342,7 +342,8 @@ object Matcher {
342
def (self: Matching) asOptionOfTuple: Option[Tuple] = self
343
344
/** Concatenates the contents of two sucessful matchings or return a `notMatched` */
345
- def (self: Matching) && (that: Matching): Matching = self match {
+ // FIXME inline to avoid alocation of by name closure (see #6395)
346
+ /*inline*/ def (self: Matching) && (that: => Matching): Matching = self match {
347
case Some(x) =>
348
that match {
349
case Some(y) => Some(x ++ y)
0 commit comments