summaryrefslogtreecommitdiff
path: root/src/library/scala/annotation/tailrec.scala
blob: 5e59c9fbf8ca05a168f255c804fdda180adfa146 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002-2010, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */
package scala.annotation

/** <p>
 *    A method annotation which verifies that the method will be compiled
 *    with tail call optimization.  If it is present, the compiler will
 *    issue an error if the method cannot be optimized into a loop.
 *  </p>
 *
 *  @since 2.8
 */
final class tailrec extends StaticAnnotation