diff options
Diffstat (limited to 'compiler/src/strawman/collections/CollectionStrawMan6.scala')
-rw-r--r-- | compiler/src/strawman/collections/CollectionStrawMan6.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/strawman/collections/CollectionStrawMan6.scala b/compiler/src/strawman/collections/CollectionStrawMan6.scala index 50de63488..c2b87cb0b 100644 --- a/compiler/src/strawman/collections/CollectionStrawMan6.scala +++ b/compiler/src/strawman/collections/CollectionStrawMan6.scala @@ -244,7 +244,7 @@ object CollectionStrawMan6 extends LowPriority { * collection type. */ override def drop(n: Int): C[A @uncheckedVariance] = { // sound bcs of VarianceNote - def loop(n: Int, s: Iterable[A]): C[A] = + @tailrec def loop(n: Int, s: Iterable[A]): C[A] = if (n <= 0) s.asInstanceOf[C[A]] // implicit contract to guarantee success of asInstanceOf: // (1) coll is of type C[A] |