summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2010-08-23 08:52:19 +0000
committerIulian Dragos <jaguarul@gmail.com>2010-08-23 08:52:19 +0000
commit32de7fe412dddd7be5f0580af0f23e8996b56db7 (patch)
treeac35b4b930eb2887f5e06d672c46e14e40fbca16 /src/library
parentc5650b9f7dd378c02918a5df879b74fbf22e4cb7 (diff)
downloadscala-32de7fe412dddd7be5f0580af0f23e8996b56db7.tar.gz
scala-32de7fe412dddd7be5f0580af0f23e8996b56db7.tar.bz2
scala-32de7fe412dddd7be5f0580af0f23e8996b56db7.zip
inline more in Range
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/immutable/Range.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/immutable/Range.scala b/src/library/scala/collection/immutable/Range.scala
index ba31ace05c..c5711f6785 100644
--- a/src/library/scala/collection/immutable/Range.scala
+++ b/src/library/scala/collection/immutable/Range.scala
@@ -267,11 +267,11 @@ object Range {
/** Make an inclusive range from start to end with given step value.
* @note step != 0
*/
- def inclusive(start: Int, end: Int, step: Int): Range.Inclusive = new Inclusive(start, end, step)
+ @inline def inclusive(start: Int, end: Int, step: Int): Range.Inclusive = new Inclusive(start, end, step)
/** Make an inclusive range from start to end with step value 1.
*/
- def inclusive(start: Int, end: Int): Range.Inclusive = new Inclusive(start, end, 1)
+ @inline def inclusive(start: Int, end: Int): Range.Inclusive = new Inclusive(start, end, 1)
// BigInt and Long are straightforward generic ranges.
object BigInt {