summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-08-10 09:31:30 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-13 10:15:27 -0700
commite65321cb29758518573902041001d203d924c8bc (patch)
tree6feef65b2cd51daff0700cb0115361f77575faa1 /src
parent5724cae9efe168094f5f3d176f2606b9c43de6dc (diff)
downloadscala-e65321cb29758518573902041001d203d924c8bc.tar.gz
scala-e65321cb29758518573902041001d203d924c8bc.tar.bz2
scala-e65321cb29758518573902041001d203d924c8bc.zip
SI-7694 Add @uncheckedBounds to the library
Followup to the previous commit that added the compiler support for opting out of bounds checking. With both pieces, we can test that the temporaries introduced by the named/default arguments transform don't trigger bounds violations.
Diffstat (limited to 'src')
-rw-r--r--src/reflect/scala/reflect/internal/annotations/uncheckedBounds.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/annotations/uncheckedBounds.scala b/src/reflect/scala/reflect/internal/annotations/uncheckedBounds.scala
new file mode 100644
index 0000000000..a44bb54734
--- /dev/null
+++ b/src/reflect/scala/reflect/internal/annotations/uncheckedBounds.scala
@@ -0,0 +1,13 @@
+package scala.reflect
+package internal
+package annotations
+
+/**
+ * An annotation that designates the annotated type should not be checked for violations of
+ * type parameter bounds in the `refchecks` phase of the compiler. This can be used by synthesized
+ * code the uses an inferred type of an expression as the type of an artifict val/def (for example,
+ * a temporary value introduced by an ANF transform). See [[https://issues.scala-lang.org/browse/SI-7694]].
+ *
+ * @since 2.10.3
+ */
+final class uncheckedBounds extends scala.annotation.StaticAnnotation