diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-01-07 17:01:01 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-01-07 17:01:01 +0000 |
commit | 4c879e308827260f5d0aa037819a88a565db4cb4 (patch) | |
tree | 335a7265514dd818884c82950166bc5101b72f5e /src/library | |
parent | 677352f871b46d0e71ae00095808dbf83e7132d0 (diff) | |
download | scala-4c879e308827260f5d0aa037819a88a565db4cb4.tar.gz scala-4c879e308827260f5d0aa037819a88a565db4cb4.tar.bz2 scala-4c879e308827260f5d0aa037819a88a565db4cb4.zip |
Added warning for failed inlining when the targ...
Added warning for failed inlining when the target is @inline annotated.
No review necessary.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Predef.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index 73512e2688..1b9f4b75ba 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -140,7 +140,7 @@ object Predef extends LowPriorityImplicits { } class ArrowAssoc[A](x: A) { - def -> [B](y: B): Tuple2[A, B] = Tuple2(x, y) + @inline def -> [B](y: B): Tuple2[A, B] = Tuple2(x, y) def →[B](y: B): Tuple2[A, B] = ->(y) } implicit def any2ArrowAssoc[A](x: A): ArrowAssoc[A] = new ArrowAssoc(x) |